aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-17 09:57:16 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-17 09:57:16 +0100
commitafd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f (patch)
tree7a4b8a2bdb279e359891946a537c3f9ba3948b86
parent645832cfdd90b6e8cb6e043bfeb25da0c39401af (diff)
downloadrails-afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f.tar.gz
rails-afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f.tar.bz2
rails-afd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f.zip
Validates needs hash slice.
-rw-r--r--activemodel/lib/active_model/validations/validates.rb2
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