Skip to content

Commit

Permalink
preserve chained method punctuation
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Jun 21, 2006
1 parent 38d1a4a commit d399ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d399ee9

Please sign in to comment.