Sha256: 4a3e32653b1fc0dc08ecf667ce9ce59708ffaef06162aba6ea261039a3500deb

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

module DevisePermittedParameters
  extend ActiveSupport::Concern

  included do
    before_action :configure_permitted_parameters
  end

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
    devise_parameter_sanitizer.permit(:account_update, keys: [:name])
  end

end

DeviseController.send :include, DevisePermittedParameters

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_apps_pages-0.6.5 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb