aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/acceptance.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-06-08 20:32:08 -0500
committerJoshua Peek <josh@joshpeek.com>2009-06-08 20:32:08 -0500
commit28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c (patch)
tree12a75c1f70aa1962bb0ba415562ac29ca76c6404 /activemodel/lib/active_model/validations/acceptance.rb
parent01515f8ecd90150320c7edf1df23850f2a4fdf07 (diff)
downloadrails-28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c.tar.gz
rails-28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c.tar.bz2
rails-28f36279cd484dc66b8b0ca2f0c3d75fd9ac631c.zip
Properly require ActiveModel validation dependencies
Diffstat (limited to 'activemodel/lib/active_model/validations/acceptance.rb')
-rw-r--r--activemodel/lib/active_model/validations/acceptance.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations/acceptance.rb b/activemodel/lib/active_model/validations/acceptance.rb
index 0c9ef51726..b65c9b933d 100644
--- a/activemodel/lib/active_model/validations/acceptance.rb
+++ b/activemodel/lib/active_model/validations/acceptance.rb
@@ -39,10 +39,10 @@ module ActiveModel
validates_each(attr_names,configuration) do |record, attr_name, value|
unless value == configuration[:accept]
- record.errors.add(attr_name, :accepted, :default => configuration[:message])
+ record.errors.add(attr_name, :accepted, :default => configuration[:message])
end
end
end
end
end
-end \ No newline at end of file
+end