Sha256: 4021c2706385f2de8d4862b639da1cd3d3d474d4d90cbef941eba83dd0879b20

Contents?: true

Size: 587 Bytes

Versions: 9

Compression:

Stored size: 587 Bytes

Contents

class ApplicationController < ActionController::Base
  include DeviseTokenAuth::Concerns::SetUserByToken

  before_action :configure_permitted_parameters, if: :devise_controller?

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.for(:sign_up) << :operating_thetan
    devise_parameter_sanitizer.for(:sign_up) << :favorite_color
    devise_parameter_sanitizer.for(:account_update) << :operating_thetan
    devise_parameter_sanitizer.for(:account_update) << :favorite_color
    devise_parameter_sanitizer.for(:account_update) << :current_password
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise_token_auth-0.1.37.beta4 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.37.beta3 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.37.beta2 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.37.beta1 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.36 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.35 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.34 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.33 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32 test/dummy/app/controllers/application_controller.rb