Permalink
Browse files

preserve chained method punctuation

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 38d1a4a commit d399ee93329a72584009239f0fc010701361ba24 @jeremy jeremy committed Jun 21, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/callbacks.rb
View
2 activerecord/lib/active_record/callbacks.rb
@@ -281,7 +281,7 @@ def before_validation_on_update() end
# 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

0 comments on commit d399ee9

Please sign in to comment.