Skip to content

Commit

Permalink
Ruby 3.0 compatibility
Browse files Browse the repository at this point in the history
Fixes #370
  • Loading branch information
glebm committed Mar 4, 2021
1 parent 535dcf3 commit abd3d6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/i18n/tasks/command/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def self.included(base)
end
end

def t(*args)
I18n.t(*args)
def t(*args, **kwargs)
I18n.t(*args, **kwargs)
end

module ClassMethods
Expand Down Expand Up @@ -42,8 +42,8 @@ def dsl(key)
end

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

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

0 comments on commit abd3d6f

Please sign in to comment.