Skip to content

Commit

Permalink
Manual fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Feb 26, 2024
1 parent ef66832 commit f555e97
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/services/ldap/import_users_from_filter_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_entries_from_filter(&block)
base: ldap.base_dn,
filter: filter & ldap.default_filter,
attributes: ldap.search_attributes,
&
&block
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/tables/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.id_options
end

def self.create_table(migration, &block)
migration.create_table table_name, **id_options.merge(bulk: true), &
migration.create_table table_name, **id_options.merge(bulk: true), &block
end

def self.table(_migration)
Expand Down
2 changes: 1 addition & 1 deletion lib/open_project/plugins/acts_as_op_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def add_api_attribute(on:,
# defined. If no cache key was defined before, the block's result makes up
# the whole cache key.
def add_api_representer_cache_key(*path,
&)
&block)
mod = Module.new
mod.send :define_method, :json_cache_key do
if defined?(super)
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine/menu_manager/menu_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def render_menu_dropdown(label_node, options = {}, &block)
style: 'display:none',
id: options[:drop_down_id],
class: "op-app-menu--dropdown #{options.fetch(:drop_down_class, '')}",
&))
&block))
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def search(filter, ldap_con, &block)
base: filter.used_base_dn,
filter: filter.parsed_filter_string,
attributes: ['dn', filter.group_name_attribute],
&
&block
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_captcha_settings(&block)
if OpenProject::Recaptcha::Configuration.use_hcaptcha?
Recaptcha.with_configuration(verify_url: OpenProject::Recaptcha.hcaptcha_verify_url,
api_server_url: OpenProject::Recaptcha.hcaptcha_api_server_url,
&)
&block)
else
yield
end
Expand Down
2 changes: 1 addition & 1 deletion spec/support/pages/projects/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def got_to_page(page_number)
end

def within_table(&block)
within '#project-table', &
within '#project-table', &block
end

private
Expand Down

0 comments on commit f555e97

Please sign in to comment.