Module: StillLife::ActionDispatchExtension

Defined in:
lib/still_life/action_dispatch_extension.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



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

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

#getObject



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

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

#patchObject



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

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

#postObject



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

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

#putObject



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

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