Class: Maquina::Resourceful::ResourceResponse
- Inherits:
-
Object
- Object
- Maquina::Resourceful::ResourceResponse
- Defined in:
- app/controllers/concerns/maquina/resourceful.rb
Overview
Internal class to handle success/failure response blocks in dual actions
Instance Method Summary collapse
-
#code ⇒ Object
Returns the stored block.
-
#response(&block) ⇒ Object
Stores the response block.
Instance Method Details
#code ⇒ Object
Returns the stored block
32 33 34 |
# File 'app/controllers/concerns/maquina/resourceful.rb', line 32 def code @block end |
#response(&block) ⇒ Object
Stores the response block
26 27 28 |
# File 'app/controllers/concerns/maquina/resourceful.rb', line 26 def response(&block) @block = block end |