Module: Discerner::Methods::Models::Warning
- Defined in:
- lib/discerner/methods/models/warning.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/discerner/methods/models/warning.rb', line 5 def self.included(base) attr_accessor :force_save end |
Instance Method Details
#warnings ⇒ Object
9 10 11 |
# File 'lib/discerner/methods/models/warning.rb', line 9 def warnings @warnings ||= ActiveModel::Errors.new(self) end |