Sha256: 7b0d194ab8bb499ddac378364a5e36a4c4d01e50956ea66c69bc4057db37b564

Contents?: true

Size: 388 Bytes

Versions: 18

Compression:

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

  # This is an un-pretty version of what apps using Landable should be doing.
  rescue_from Landable::Error do |error|
    render status: error.status_code, text: error.message
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 spec/dummy/app/controllers/application_controller.rb
landable-1.13.2 spec/dummy/app/controllers/application_controller.rb
landable-1.13.1 spec/dummy/app/controllers/application_controller.rb
landable-1.12.3 spec/dummy/app/controllers/application_controller.rb
landable-1.12.2 spec/dummy/app/controllers/application_controller.rb
landable-1.12.1 spec/dummy/app/controllers/application_controller.rb
landable-1.11.1 spec/dummy/app/controllers/application_controller.rb
landable-1.11.0 spec/dummy/app/controllers/application_controller.rb
landable-1.10.0.rc2 spec/dummy/app/controllers/application_controller.rb
landable-1.10.0.rc1 spec/dummy/app/controllers/application_controller.rb
landable-1.9.2 spec/dummy/app/controllers/application_controller.rb
landable-1.9.1 spec/dummy/app/controllers/application_controller.rb
landable-1.9.0 spec/dummy/app/controllers/application_controller.rb
landable-1.9.0.rc2 spec/dummy/app/controllers/application_controller.rb
landable-1.9.0.rc1 spec/dummy/app/controllers/application_controller.rb
landable-1.8.0 spec/dummy/app/controllers/application_controller.rb
landable-1.7.1.rc1 spec/dummy/app/controllers/application_controller.rb
landable-1.7.0 spec/dummy/app/controllers/application_controller.rb