pestovpvl2 May 26th, 2019 (edited) 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- module DeviseWhitelist
- extend ActiveSupport::Concern
- included do before_flter :configura_permitted_parameters, if: :devise_controller?
- def configura_permitted_parameters
- devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
- devise_parameter_sanitizer.permit(:account_update, keys: [:name])
RAW Paste Data