Sha256: 72660b816cbf2e7477990816e06ed2ba0fceaf6acd33ff4c0957cca4fa34ed1c
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 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, :payments_customer_id, :payments_subscription_id, :payments_plan_id, :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_accounts-3.3.0 | app/controllers/phcdevworks_accounts/application_controller.rb |