Sha256: 3b9b3026bf3683570b9f11374fb94a99f0d16a9bf64704e66354b1bcbe7750cf

Contents?: true

Size: 309 Bytes

Versions: 12

Compression:

Stored size: 309 Bytes

Contents

class TryApi::ApplicationController < ActionController::Base


  rescue_from Exception do |exception|
    @message = exception.message
    begin
      render template: 'try_api/pages/config_file_not_found'
    rescue Exception => e
      render json: {error: exception.message}, status: 422
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
try_api-0.1.15 app/controllers/try_api/application_controller.rb
try_api-0.1.14 app/controllers/try_api/application_controller.rb
try_api-0.1.13 app/controllers/try_api/application_controller.rb
try_api-0.1.12 app/controllers/try_api/application_controller.rb
try_api-0.1.11 app/controllers/try_api/application_controller.rb
try_api-0.1.10 app/controllers/try_api/application_controller.rb
try_api-0.1.9 app/controllers/try_api/application_controller.rb
try_api-0.1.8 app/controllers/try_api/application_controller.rb
try_api-0.1.7 app/controllers/try_api/application_controller.rb
try_api-0.1.6 app/controllers/try_api/application_controller.rb
try_api-0.1.5 app/controllers/try_api/application_controller.rb
try_api-0.1.4 app/controllers/try_api/application_controller.rb