Sha256: 810aba75c16754f40037d09a96751ed4d5d94ce7496b01cbfc2537424a0b48b4

Contents?: true

Size: 903 Bytes

Versions: 6

Compression:

Stored size: 903 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

6 entries across 6 versions & 1 rubygems

Version Path
phcdevworks_accounts-2.5.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.4.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.3.0 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.2.3 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.2.1 app/controllers/phcdevworks_accounts/application_controller.rb
phcdevworks_accounts-2.2.0 app/controllers/phcdevworks_accounts/application_controller.rb