Module: ResetOnColumnErrors
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationRecord
- Defined in:
- app/models/concerns/reset_on_column_errors.rb
Constant Summary collapse
- MAX_RESET_PERIOD =
10.minutes
Instance Method Summary collapse
Instance Method Details
#reset_on_union_error(exception) ⇒ Object
41 42 43 |
# File 'app/models/concerns/reset_on_column_errors.rb', line 41 def reset_on_union_error(exception) self.class.reset_on_union_error(exception) end |
#reset_on_unknown_attribute_error(exception) ⇒ Object
45 46 47 48 49 |
# File 'app/models/concerns/reset_on_column_errors.rb', line 45 def reset_on_unknown_attribute_error(exception) self.class.do_reset(exception) if self.class.should_reset? raise end |