Module: Customs::ControlFlow

Defined in:
lib/customs/control_flow.rb

Instance Method Summary collapse

Instance Method Details

#createObject

Other actions



20
21
22
23
# File 'lib/customs/control_flow.rb', line 20

def create
  save_resource
  success_response
end

#destroyObject



30
31
32
33
# File 'lib/customs/control_flow.rb', line 30

def destroy
  destroy_resource
  success_response
end

#indexObject

GET actions



8
9
10
# File 'lib/customs/control_flow.rb', line 8

def index
  respond_with resource_collection
end

#updateObject



25
26
27
28
# File 'lib/customs/control_flow.rb', line 25

def update
  save_resource
  success_response
end