提交 afc129e2 编写于 作者: B Bryan Helmkamp

Fix some Ruby warnings: `*' interpreted as argument prefix

上级 30399128
module ActionController module ActionController
module Translation module Translation
def translate(*args) def translate(*args)
I18n.translate *args I18n.translate(*args)
end end
alias :t :translate alias :t :translate
def localize(*args) def localize(*args)
I18n.localize *args I18n.localize(*args)
end end
alias :l :localize alias :l :localize
end end
......
...@@ -21,7 +21,7 @@ def translate(key, options = {}) ...@@ -21,7 +21,7 @@ def translate(key, options = {})
# Delegates to I18n.localize with no additional functionality. # Delegates to I18n.localize with no additional functionality.
def localize(*args) def localize(*args)
I18n.localize *args I18n.localize(*args)
end end
alias :l :localize alias :l :localize
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册