Silly me

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3513 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 1f8f982e
*SVN*
* Added Errors#any? to mean !Errors#empty? [DHH]
* Support the :column option for remove_index with the PostgreSQL adapter. #3661 [shugo@ruby-lang.org]
* Add documentation for add_index and remove_index. #3600 [Manfred Stienstra <m.stienstra@fngtps.com>]
......
......@@ -148,11 +148,6 @@ def empty?
return @errors.empty?
end
# Returns true if errors have been added.
def any?
!empty?
end
# Removes all the errors that have been added.
def clear
@errors = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册