mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Merge pull request #8447 from Matt-Yorkley/keyword-args-deprecation
Fix keyword args deprecations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user