Method: Api::V2::ApplicationController#show

Defined in:
app/controllers/api/v2/application_controller.rb

#showObject



48
49
50
51
52
53
54
55
56
57
58
# File 'app/controllers/api/v2/application_controller.rb', line 48

def show
    authorize! :show, @record_id

    # Custom Show Action
    status, result = check_for_custom_action
    return render json: result, status: 200 if status == true

    # Normal Show
    result = @record.to_json(json_attrs)
    render json: result, status: 200
end