Sha256: b31e94d19aa993d89bd316509893cc2abfb06a5a7207ec37ac20873b3adf84ae

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

class ApplicationController < ActionController::Base
  include DeviseJwtAuth::Concerns::SetUserByJwtToken

  before_action :configure_permitted_parameters, if: :devise_controller?

  protected

  def configure_permitted_parameters
    permitted_parameters = devise_parameter_sanitizer.instance_values['permitted']
    permitted_parameters[:sign_up] << :operating_thetan
    permitted_parameters[:sign_up] << :favorite_color
    permitted_parameters[:account_update] << :operating_thetan
    permitted_parameters[:account_update] << :favorite_color
    permitted_parameters[:account_update] << :current_password
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_jwt_auth-0.1.3 test/dummy/app/controllers/application_controller.rb
devise_jwt_auth-0.1.2 test/dummy/app/controllers/application_controller.rb
devise_jwt_auth-0.1.1 test/dummy/app/controllers/application_controller.rb
devise_jwt_auth-0.1.0 test/dummy/app/controllers/application_controller.rb