Module: SimpleResourceController::Controller::Actions::Show

Defined in:
lib/simple_resource_controller/controller/actions.rb

Instance Method Summary collapse

Instance Method Details

#show(options = {}, &block) ⇒ Object Also known as: show!



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/simple_resource_controller/controller/actions.rb', line 20

def show(options={}, &block)
  unless block_given?
    if current_controller_api?
      api_before_show_response_callback(options)
    else
      html_before_show_response_callback(options)
    end
  end

  respond_with resource, options, &block
end