From be9f868cb67e76864668b683b2b1bd156c4c26a4 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 17 Jul 2014 16:08:38 -0700 Subject: %i doesn't work on 1.9 --- activemodel/lib/active_model/validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel') 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) -- cgit v1.2.3