Skip to content

Commit

Permalink
Improved forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 30, 2024
1 parent 64ee33d commit ab36b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/strong_migrations/migrator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module StrongMigrations
module Migrator
def ddl_transaction(migration, *args)
def ddl_transaction(migration, ...)
return super unless StrongMigrations.lock_timeout_retries > 0 && use_transaction?(migration)

# handle MigrationProxy class
Expand All @@ -12,7 +12,7 @@ def ddl_transaction(migration, *args)
# failed transaction reverts timeout, so need to re-apply
checker.timeouts_set = false

super(migration, *args)
super(migration, ...)
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions lib/strong_migrations/schema_dumper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module StrongMigrations
module SchemaDumper
def initialize(connection, *args, **options)
def initialize(connection, ...)
return super unless StrongMigrations.alphabetize_schema

super(WrappedConnection.new(connection), *args, **options)
super(WrappedConnection.new(connection), ...)
end
end

Expand All @@ -14,8 +14,8 @@ def initialize(connection)
@connection = connection
end

def columns(*args, **options)
@connection.columns(*args, **options).sort_by(&:name)
def columns(...)
@connection.columns(...).sort_by(&:name)
end

# forward private methods with send
Expand Down

0 comments on commit ab36b32

Please sign in to comment.