instance method clear

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

clear()

Removes all errors that have been added.

Source
# File activerecord/lib/active_record/validations.rb, line 297
    def clear
      @errors = ActiveSupport::OrderedHash.new
    end

Defined in activerecord/lib/active_record/validations.rb line 297 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Errors

Type at least 2 characters to search.

↑↓ navigate · open · esc close