Module: DataMapper::Model::Hook::Methods

Defined in:
lib/dm-core/model/hook.rb

Instance Method Summary collapse

Instance Method Details

#after(target_method, *args, &block) ⇒ Object

TODO: document



23
24
25
26
27
# File 'lib/dm-core/model/hook.rb', line 23

def after(target_method, *args, &block)
  remap_target_method(target_method).each do |target_method|
    super(target_method, *args, &block)
  end
end

#before(target_method, *args, &block) ⇒ Object

TODO: document



15
16
17
18
19
# File 'lib/dm-core/model/hook.rb', line 15

def before(target_method, *args, &block)
  remap_target_method(target_method).each do |target_method|
    super(target_method, *args, &block)
  end
end