1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3513 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-02-01 04:18:07 +00:00
parent 1f8f982ee0
commit f791fe7621
2 changed files with 0 additions and 7 deletions

View file

@ -1,7 +1,5 @@
*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>]

View file

@ -148,11 +148,6 @@ module ActiveRecord
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 = {}