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-0.35.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.35.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.34.2 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.34.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.34.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.33.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.32.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.31.2 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.31.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.31.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.30.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.30.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.29.0 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.28.1 spec_app/app/controllers/application_controller.rb
unpoly-rails-0.28.0 spec_app/app/controllers/application_controller.rb