diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-17 09:57:16 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-17 09:57:16 +0100 |
commit | afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f (patch) | |
tree | 7a4b8a2bdb279e359891946a537c3f9ba3948b86 | |
parent | 645832cfdd90b6e8cb6e043bfeb25da0c39401af (diff) | |
download | rails-afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f.tar.gz rails-afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f.tar.bz2 rails-afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f.zip |
Validates needs hash slice.
-rw-r--r-- | activemodel/lib/active_model/validations/validates.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb index 4c82a993ae..90b244228a 100644 --- a/activemodel/lib/active_model/validations/validates.rb +++ b/activemodel/lib/active_model/validations/validates.rb @@ -1,3 +1,5 @@ +require 'active_support/core_ext/hash/slice' + module ActiveModel module Validations module ClassMethods |