Sha256: f2b55ff1a13bcf21f228899ecd37b2e7990673c18e98bab6d75564ed6ec9c435

Contents?: true

Size: 372 Bytes

Versions: 13

Compression:

Stored size: 372 Bytes

Contents

module DevisePermittedParameters
  extend ActiveSupport::Concern

  included do
    before_filter :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

13 entries across 13 versions & 1 rubygems

Version Path
rails_apps_pages-0.5.15 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.14 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.13 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.12 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.11 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.10 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.9 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.8 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.7 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.6 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.5 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.4 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
rails_apps_pages-0.5.3 lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb