diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 17:00:16 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-19 17:00:16 +0000 |
commit | b3fcf2fa3c55584c6cb23d2195fbdc2647cc84cd (patch) | |
tree | 2ed35ed73689adb0ce7674638b8acc06cd8d3d5f /activerecord/lib | |
parent | 7ec91d465173fe19241b8d2f2c2f1036b2fff83a (diff) | |
download | rails-b3fcf2fa3c55584c6cb23d2195fbdc2647cc84cd.tar.gz rails-b3fcf2fa3c55584c6cb23d2195fbdc2647cc84cd.tar.bz2 rails-b3fcf2fa3c55584c6cb23d2195fbdc2647cc84cd.zip |
Fixed docs for scaffolding generator #1303 [thijs@vandervossen.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 9987c0631d..03a71f095b 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -297,8 +297,6 @@ module ActiveRecord # * <tt>on</tt> - Specifies when this validation is active (default is :save, other options :create, :update) # * <tt>accept</tt> - Specifies value that is considered accepted. The default value is a string "1", which # makes it easy to relate to an HTML checkbox. - # - def validates_acceptance_of(*attr_names) configuration = { :message => ActiveRecord::Errors.default_error_messages[:accepted], :on => :save, :allow_nil => true, :accept => "1" } configuration.update(attr_names.pop) if attr_names.last.is_a?(Hash) |