Sha256: 0bdc459b0f355bc615c5c3a6d58d88fbfc931e037c7aeabf9026802608b5ff18

Contents?: true

Size: 514 Bytes

Versions: 19

Compression:

Stored size: 514 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
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
devise_token_auth-0.1.32.beta10 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta9 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta8 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta7 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta6 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta5 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta4 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta3 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta2 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.32.beta1 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta10 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta9 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta8 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta7 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta6 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta5 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta4 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta3 test/dummy/app/controllers/application_controller.rb