Sha256: f1d0cdfd063c49b313b283018967819665e0152c9485badc05deb7bac2d78d4d

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

class ApplicationController < ActionController::Base
  skip_before_action :verify_authenticity_token, if: :devise_controller? if Rails.version.to_f > 5.1
  before_action :configure_permitted_parameters, if: :devise_controller?
  protect_from_forgery with: :null_session

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.permit :sign_up, keys: [:name]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amazon-chime-sdk-rails-2.0.1 spec/rails_app/app/controllers/application_controller.rb
amazon-chime-sdk-rails-2.0.0 spec/rails_app/app/controllers/application_controller.rb
amazon-chime-sdk-rails-1.1.1 spec/rails_app/app/controllers/application_controller.rb
amazon-chime-sdk-rails-1.1.0 spec/rails_app/app/controllers/application_controller.rb
amazon-chime-sdk-rails-1.0.0 spec/rails_app/app/controllers/application_controller.rb