Class: ActiveRecord::Errors

Inherits:
Object show all
Defined in:
lib/freighthopper/activerecord/clear_errors.rb

Instance Method Summary collapse

Instance Method Details

#clear_on(attribute) ⇒ Object



3
4
5
# File 'lib/freighthopper/activerecord/clear_errors.rb', line 3

def clear_on(attribute)
  @errors.delete attribute.to_s
end