mirror of https://github.com/tootsuite/mastodon
Apply Rubocop Performance/BindCall (#23437)
parent
cec005068f
commit
c92e033cdd
|
@ -11,7 +11,7 @@ module ActiveRecord
|
||||||
ActiveRecord::Base.establish_connection(db_config)
|
ActiveRecord::Base.establish_connection(db_config)
|
||||||
Mastodon::Snowflake.define_timestamp_id
|
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
|
Mastodon::Snowflake.ensure_id_sequences_exist
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Rails
|
||||||
module EngineExtensions
|
module EngineExtensions
|
||||||
# Rewrite task loading code to filter digitalocean.rake task
|
# Rewrite task loading code to filter digitalocean.rake task
|
||||||
def run_tasks_blocks(app)
|
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) }
|
paths["lib/tasks"].existent.reject { |ext| ext.end_with?('digitalocean.rake') }.sort.each { |ext| load(ext) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue