Skip to content

Instantly share code, notes, and snippets.

@akshaymohite
Created July 22, 2017 13:03
Show Gist options
  • Save akshaymohite/21966363040fc3845a5873dce7728a6f to your computer and use it in GitHub Desktop.
Save akshaymohite/21966363040fc3845a5873dce7728a6f to your computer and use it in GitHub Desktop.
devise_parameter_sanitizer method
# Set up a param sanitizer to filter parameters using strong_parameters. See
# lib/devise/parameter_sanitizer.rb for more info. Override this
# method in your application controller to use your own parameter sanitizer.
def devise_parameter_sanitizer
@devise_parameter_sanitizer ||= Devise::ParameterSanitizer.new(resource_class, resource_name, params)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment