Sha256: 23836524f140cd7f441e27e61f8e3f38c1ad02dd8e87d52b890ecbb4b3ec3751

Contents?: true

Size: 534 Bytes

Versions: 31

Compression:

Stored size: 534 Bytes

Contents

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

  before_action :configure_permitted_parameters, if: :devise_controller?

  respond_to :json

  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

31 entries across 31 versions & 3 rubygems

Version Path
xing_backend_token_auth-0.1.32 test/dummy/app/controllers/application_controller.rb
cm-devise_token_auth-0.1.30.1 test/dummy/app/controllers/application_controller.rb
xing_backend_token_auth-0.1.31 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta2 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.31.beta1 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30.beta6 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30.beta5 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30.beta4 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30.beta3 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30.beta2 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.30.beta1 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta7 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta6 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta5 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta4 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta3 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta2 test/dummy/app/controllers/application_controller.rb
devise_token_auth-0.1.29.beta1 test/dummy/app/controllers/application_controller.rb