Module: Changey::DSL::InstanceMethods

Defined in:
lib/changey/dsl.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/changey/dsl.rb', line 57

def self.included(base)
  base.before_validation  { set_changey_tracks                    }
  base.validate           { run_changey_callbacks(:validate)      }
  base.before_save        { run_changey_callbacks(:before_save)   }
  base.after_save         { run_changey_callbacks(:after_save)    }
  base.after_commit       { run_changey_callbacks(:after_commit)  }
end