Sha256: 51ac5ae93641817e537251e667e764dd9b4e437b1c72a6c9c75a27ecd157e16c

Contents?: true

Size: 374 Bytes

Versions: 55

Compression:

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

  before_action :print_authenticity_token

  private

  def print_authenticity_token
    Rails.logger.info "*** Real token is #{send(:real_csrf_token, session)}"
  end

end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
unpoly-rails-1.0.3 spec_app/app/controllers/application_controller.rb
unpoly-rails-1.0.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-1.0.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.62.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.62.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.61.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.61.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.60.3 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.60.2 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.60.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.60.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.57.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.7 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.6 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.5 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.4 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.3 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.2 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.56.0 spec_app/app/controllers/application_controller.rb