diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-17 16:08:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-17 16:08:38 -0700 |
commit | be9f868cb67e76864668b683b2b1bd156c4c26a4 (patch) | |
tree | c7728c7bbeb7536a29bf6f4e95bff6df4fe4c6bd /activemodel | |
parent | 5737c8e24b022556e5e03629b3249a033c5cee72 (diff) | |
download | rails-be9f868cb67e76864668b683b2b1bd156c4c26a4.tar.gz rails-be9f868cb67e76864668b683b2b1bd156c4c26a4.tar.bz2 rails-be9f868cb67e76864668b683b2b1bd156c4c26a4.zip |
%i doesn't work on 1.9
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index b3d345c8ca..f67a3be5c1 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -143,7 +143,7 @@ module ActiveModel 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) |