Sha256: 087bce0b87fe59cda21e839bb1b5cdc6f86362553f402c5d155da1cec100ffaf

Contents?: true

Size: 296 Bytes

Versions: 15

Compression:

Stored size: 296 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

  def render_404
    render file: Rails.root.join('public', '404.html'), status: 404
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lockup-1.7.1 spec/dummy/app/controllers/application_controller.rb
lockup-1.7 spec/dummy/app/controllers/application_controller.rb
lockup-1.6.1 spec/dummy/app/controllers/application_controller.rb
lockup-1.6 spec/dummy/app/controllers/application_controller.rb
lockup-1.5.1 spec/dummy/app/controllers/application_controller.rb
lockup-1.5 spec/dummy/app/controllers/application_controller.rb
lockup-1.4.5.1 spec/dummy/app/controllers/application_controller.rb
lockup-1.4.4 spec/dummy/app/controllers/application_controller.rb
lockup-1.4.3 spec/dummy/app/controllers/application_controller.rb
lockup-1.4.2 spec/dummy/app/controllers/application_controller.rb
lockup-1.4.1 spec/dummy/app/controllers/application_controller.rb
lockup-1.4 spec/dummy/app/controllers/application_controller.rb
lockup-1.3.2.1 spec/dummy/app/controllers/application_controller.rb
lockup-1.3.2 spec/dummy/app/controllers/application_controller.rb
lockup-1.3.1 spec/dummy/app/controllers/application_controller.rb