Sha256: 0f90b44791efe70e529f1d62ec668387c947d533e5fe68f3059d15898030c8ca

Contents?: true

Size: 829 Bytes

Versions: 12

Compression:

Stored size: 829 Bytes

Contents

module PhcdevworksAccounts
  class ApplicationController < ActionController::Base

    # Devise Filter
    before_action :phcdevworks_accounts_permitted_parameters, if: :devise_controller?

    # Security Filters
    protect_from_forgery with: :exception

    # Load Requried Helper Files
    helper PhcdevworksActiveMenus::Engine.helpers
    helper PhcdevworksNotifications::Engine.helpers
    helper PhcdevworksTitleseo::Engine.helpers

    private

    # Whitelist Additional Fields
    def phcdevworks_accounts_permitted_parameters
      added_attrs = [:username, :firstname, :lastname, :email, :terms_of_service, :password, :password_confirmation, :remember_me]
      devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
      devise_parameter_sanitizer.permit :account_update, keys: added_attrs
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
phcdevworks_accounts-2.1.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.0.1 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.0.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.13.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.12.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.11.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.10.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.9.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.8.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.7.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.6.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-1.5.2 app/controllers/phcdevworks_accounts/application_controller.rb