SHARE
TWEET

Untitled

pestovpvl2 May 26th, 2019 (edited) 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module DeviseWhitelist
  2.   extend ActiveSupport::Concern  
  3.     included do before_flter :configura_permitted_parameters, if: :devise_controller?
  4.   end
  5.   def configura_permitted_parameters
  6.     devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
  7.     devise_parameter_sanitizer.permit(:account_update, keys: [:name])
  8.   end
  9. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top