Module: SimplyCouch::Model::Persistence::DirtyAttributes
- Defined in:
- lib/simply_couch/model/persistence.rb
Overview
── Dirty Attributes ─────────────────────────────────────────────────
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
236 237 238 239 240 241 |
# File 'lib/simply_couch/model/persistence.rb', line 236 def self.included(base) base.send :include, ActiveModel::Dirty base.send :alias_method, :dirty?, :changed? base.class_eval { after_save :clear_changes_information } end |