diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-21 23:09:01 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-21 23:09:01 +0000 |
commit | d399ee93329a72584009239f0fc010701361ba24 (patch) | |
tree | d0e76bfac9898db46b5dc084392a650a7eeda157 | |
parent | 38d1a4aa09fada8bf5797b92bb97e96857448482 (diff) | |
download | rails-d399ee93329a72584009239f0fc010701361ba24.tar.gz rails-d399ee93329a72584009239f0fc010701361ba24.tar.bz2 rails-d399ee93329a72584009239f0fc010701361ba24.zip |
preserve chained method punctuation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | activerecord/lib/active_record/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb index d219efe727..cef954ea39 100755 --- a/activerecord/lib/active_record/callbacks.rb +++ b/activerecord/lib/active_record/callbacks.rb @@ -281,7 +281,7 @@ module ActiveRecord # existing objects that have a record. def after_validation_on_update() end - def valid_with_callbacks #:nodoc: + def valid_with_callbacks? #:nodoc: return false if callback(:before_validation) == false if new_record? then result = callback(:before_validation_on_create) else result = callback(:before_validation_on_update) end return false if result == false |