Sha256: d181bce93081672f4c528f565bf6e136fa876a668dd274bc20461798aefc3523

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

module DevisePermittedParameters
  extend ActiveSupport::Concern

  included do
    before_action :configure_permitted_parameters
  end

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.for(:sign_up) << :name
    devise_parameter_sanitizer.for(:account_update) << :name
  end

end

DeviseController.send :include, DevisePermittedParameters

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_apps_pages-0.6.4 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.6.3 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.6.2 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.6.0 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.16 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb