Module: DataMapper::Hook
- Defined in:
- lib/gems/dm-core-0.9.9/lib/dm-core/hook.rb
Class Method Summary collapse
Class Method Details
.included(model) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/hook.rb', line 3 def self.included(model) model.class_eval <<-EOS, __FILE__, __LINE__ include Extlib::Hook register_instance_hooks :save, :create, :update, :destroy EOS end |