Module: Quiver::Mapper::Hook

Defined in:
lib/quiver/mapper/hook.rb

Instance Method Summary collapse

Instance Method Details

#after_dehydrate(attributes) ⇒ Object



8
9
10
# File 'lib/quiver/mapper/hook.rb', line 8

def after_dehydrate(attributes)
  attributes
end

#after_save(result) ⇒ Object



16
17
18
# File 'lib/quiver/mapper/hook.rb', line 16

def after_save(result)
  result
end

#before_hydrate(attributes) ⇒ Object



4
5
6
# File 'lib/quiver/mapper/hook.rb', line 4

def before_hydrate(attributes)
  attributes
end

#before_save(model) ⇒ Object



12
13
14
# File 'lib/quiver/mapper/hook.rb', line 12

def before_save(model)
  model
end