Sha256: d9fb704fb336696be52648fe3361c429acef38d3ef7c781ebf64279812480f62

Contents?: true

Size: 311 Bytes

Versions: 3

Compression:

Stored size: 311 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  rescue_from Exception do |exception|
    render text: "Error: #{exception.message}", status: 500
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cache_debugging-0.1.1 test/dummy/app/controllers/application_controller.rb
cache_debugging-0.1.0 test/dummy/app/controllers/application_controller.rb
cache_debugging-0.0.1 test/dummy/app/controllers/application_controller.rb