Sha256: bb58956f4a2a26edb95a2666a46615bd9d7e4e4b3ecfffb8cb0362a7b7a86263

Contents?: true

Size: 137 Bytes

Versions: 5

Compression:

Stored size: 137 Bytes

Contents

if defined?(ActiveRecord)
  class ActiveRecord::Errors
    def clear_on(attribute)
      @errors.delete attribute.to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freighthopper-0.1.14 lib/freighthopper/activerecord/clear_errors.rb
freighthopper-0.1.13 lib/freighthopper/activerecord/clear_errors.rb
freighthopper-0.1.12 lib/freighthopper/activerecord/clear_errors.rb
freighthopper-0.1.11 lib/freighthopper/activerecord/clear_errors.rb
freighthopper-0.1.9 lib/freighthopper/activerecord/clear_errors.rb