Skip to content

Commit

Permalink
Merge pull request carlosantoniodasilva#19 from lucasmazza/1.8-compat
Browse files Browse the repository at this point in the history
Fix argument splatting on Ruby 1.8
  • Loading branch information
carlosantoniodasilva committed Jun 12, 2012
2 parents 7cb1df1 + b3f829f commit faba4e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/i18n_alchemy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def localized(attributes=nil, *args)
end

module ClassMethods
def localize(*methods, options)
def localize(*methods)
options = methods.extract_options!
parser = options[:using]
methods = methods.each_with_object(localized_methods) do |method_name, hash|
hash[method_name] = parser
Expand Down

0 comments on commit faba4e0

Please sign in to comment.