Browse files

%i doesn't work on 1.9

  • Loading branch information...
1 parent 5737c8e commit be9f868cb67e76864668b683b2b1bd156c4c26a4 @tenderlove tenderlove committed Jul 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/validations.rb
View
2 activemodel/lib/active_model/validations.rb
@@ -143,7 +143,7 @@ def validate(*args, &block)
options = args.extract_options!
if args.all? { |arg| arg.is_a?(Symbol) }
- options.assert_valid_keys(%i(on if unless))
+ options.assert_valid_keys([:on, :if, :unless])
end
if options.key?(:on)

2 comments on commit be9f868

@sikachu
Ruby on Rails member

Now we all wait for Rails 5 to drop support for 1.9 😢

@sgrif
Ruby on Rails member

kwargs all of the things!

Please sign in to comment.