Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Mastodon
Commits
c92e033c
Unverified
Commit
c92e033c
authored
2 years ago
by
Nick Schonning
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply Rubocop Performance/BindCall (#23437)
parent
cec00506
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/active_record/database_tasks_extensions.rb
+1
-1
1 addition, 1 deletion
lib/active_record/database_tasks_extensions.rb
lib/rails/engine_extensions.rb
+1
-1
1 addition, 1 deletion
lib/rails/engine_extensions.rb
with
2 additions
and
2 deletions
lib/active_record/database_tasks_extensions.rb
+
1
−
1
View file @
c92e033c
...
...
@@ -11,7 +11,7 @@ module ActiveRecord
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
...
...
This diff is collapsed.
Click to expand it.
lib/rails/engine_extensions.rb
+
1
−
1
View file @
c92e033c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment