提交 d399ee93 编写于 作者: J Jeremy Kemper

preserve chained method punctuation

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 38d1a4aa
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册