Merge pull request #8447 from Matt-Yorkley/keyword-args-deprecation

Fix keyword args deprecations
This commit is contained in:
Maikel
2021-11-17 17:09:15 +11:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ module DelegateBelongsTo
raise 'Illegal or unimplemented association type.'
end
__send__(type, association, opts) if reflect_on_association(association).nil?
__send__(type, association, **opts) if reflect_on_association(association).nil?
end
private

View File

@@ -16,8 +16,8 @@ module Spree
options = args.extract_options!
options[:scope] = [*options[:scope]].unshift(:spree).uniq
args << options
super(*args)
super(*args, **options)
end
alias_method :t, :translate