Module: CouchPotato::Persistence::DirtyAttributes

Defined in:
lib/couch_potato/persistence/dirty_attributes.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



6
7
8
9
10
11
# File 'lib/couch_potato/persistence/dirty_attributes.rb', line 6

def self.included(base) #:nodoc:
  base.send :include, ActiveModel::Dirty
  base.class_eval do
    after_save :clear_changes_information
  end
end