Sha256: 5af9aa96f6d32f771b6617a1d1a1913bfabe3976309050cac0406c83c1dd964c

Contents?: true

Size: 348 Bytes

Versions: 9

Compression:

Stored size: 348 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :configure_permitted_parameters, :if => :devise_controller?

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:email, :password, :bio) } if defined?(ActionController::StrongParameters)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise_invitable-1.4.0 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.6 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.5 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.4 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.3 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.2 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.1 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.3.0 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.2.1 test/rails_app/app/controllers/application_controller.rb