Module: Opium::Model::Dirty
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/opium/model/dirty.rb
Instance Method Summary collapse
Instance Method Details
#initialize(attributes = {}) ⇒ Object
10 11 12 |
# File 'lib/opium/model/dirty.rb', line 10 def initialize( attributes = {} ) super( attributes ).tap { self.send :clear_changes_information } end |
#save(options = {}) ⇒ Object
14 15 16 |
# File 'lib/opium/model/dirty.rb', line 14 def save( = {} ) super( ).tap { self.send :changes_applied } end |