Skip to content

Commit

Permalink
Apply Rubocop Performance/BindCall (mastodon#23437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Feb 8, 2023
1 parent cec0050 commit c92e033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/active_record/database_tasks_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module DatabaseTasks
ActiveRecord::Base.establish_connection(db_config)
Mastodon::Snowflake.define_timestamp_id

original_load_schema.bind(self).call(db_config, *args)
original_load_schema.bind_call(self, db_config, *args)

Mastodon::Snowflake.ensure_id_sequences_exist
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rails/engine_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Rails
module EngineExtensions
# Rewrite task loading code to filter digitalocean.rake task
def run_tasks_blocks(app)
Railtie.instance_method(:run_tasks_blocks).bind(self).call(app)
Railtie.instance_method(:run_tasks_blocks).bind_call(self, app)
paths["lib/tasks"].existent.reject { |ext| ext.end_with?('digitalocean.rake') }.sort.each { |ext| load(ext) }
end
end
Expand Down

0 comments on commit c92e033

Please sign in to comment.