Skip to content

Commit

Permalink
Get rid of deprecation warning on ruby 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
denny authored and glebm committed May 31, 2020
1 parent 6228a06 commit 0d0c16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/i18n/tasks/command/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def dsl(key)
end

# late-bound I18n.t for module bodies
def t(*args)
proc { I18n.t(*args) }
def t(*args, **opts)
proc { I18n.t(*args, **opts) }
end

# if class is a module, merge DSL definitions when it is included
Expand Down

0 comments on commit 0d0c16b

Please sign in to comment.