Skip to content

Commit

Permalink
Merge pull request #521 from beamtech/fix-ruby27-deprecation-warning-…
Browse files Browse the repository at this point in the history
…in-proc-call

Fix Ruby 2.7 keyword arguments related deprecation warning in Proc call
  • Loading branch information
radar authored Mar 29, 2020
2 parents e1212b3 + d07cb48 commit 544cbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/backend/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def resolve(locale, object, subject, options = EMPTY_HASH)
I18n.translate(subject, **options.merge(:locale => locale, :throw => true))
when Proc
date_or_time = options.delete(:object) || object
resolve(locale, object, subject.call(date_or_time, options))
resolve(locale, object, subject.call(date_or_time, **options))
else
subject
end
Expand Down

0 comments on commit 544cbe9

Please sign in to comment.