mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Unify transaction
method signature for eliminating kwargs warning
This commit is contained in:
parent
2f44c3b00b
commit
fd305732b8
1 changed files with 2 additions and 2 deletions
|
@ -302,8 +302,8 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
# See ActiveRecord::Transactions::ClassMethods for detailed documentation.
|
||||
def transaction(options = {}, &block)
|
||||
self.class.transaction(options, &block)
|
||||
def transaction(**options, &block)
|
||||
self.class.transaction(**options, &block)
|
||||
end
|
||||
|
||||
def destroy #:nodoc:
|
||||
|
|
Loading…
Reference in a new issue