1
0
Fork 0
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:
Akira Matsuda 2019-09-11 08:00:41 +09:00
parent 2f44c3b00b
commit fd305732b8

View file

@ -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: