Module: StillLife::ActionDispatchExtension

Defined in:
lib/still_life/action_dispatch_extension.rb

Instance Method Summary collapse

Instance Method Details

#delete(*args) ⇒ Object



29
30
31
32
33
# File 'lib/still_life/action_dispatch_extension.rb', line 29

def delete(*args)
  super(*args).tap do
    StillLife.draw(response.body)
  end
end

#get(*args) ⇒ Object



5
6
7
8
9
# File 'lib/still_life/action_dispatch_extension.rb', line 5

def get(*args)
  super(*args).tap do
    StillLife.draw(response.body)
  end
end

#patch(*args) ⇒ Object



23
24
25
26
27
# File 'lib/still_life/action_dispatch_extension.rb', line 23

def patch(*args)
  super(*args).tap do
    StillLife.draw(response.body)
  end
end

#post(*args) ⇒ Object



11
12
13
14
15
# File 'lib/still_life/action_dispatch_extension.rb', line 11

def post(*args)
  super(*args).tap do
    StillLife.draw(response.body)
  end
end

#put(*args) ⇒ Object



17
18
19
20
21
# File 'lib/still_life/action_dispatch_extension.rb', line 17

def put(*args)
  super(*args).tap do
    StillLife.draw(response.body)
  end
end