Sha256: 63c0e5ac25787456b3cd23ab120cc291952474cb947a02723ff3d653f71257ff

Contents?: true

Size: 495 Bytes

Versions: 9

Compression:

Stored size: 495 Bytes

Contents

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

  protected
  def after_sign_in_path_for(resource)
    if resource.is_a? Admin
      edit_admin_registration_path(resource)
    else
      super
    end
  end

  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.6.1 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.6.0 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.5.5 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.5.3 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.5.2 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.5.1 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.5.0 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.4.2 test/rails_app/app/controllers/application_controller.rb
devise_invitable-1.4.1 test/rails_app/app/controllers/application_controller.rb