class ApplicationController
Protected Instance Methods
check_user_type(path = root_path)
click to toggle source
# File app/controllers/application_controller.rb, line 23 def check_user_type(path = root_path) return if current_user.enterprise redirect_to path, notice: 'You must be an enterprise type member to access this area.' end
configure_permitted_parameters()
click to toggle source
# File app/controllers/application_controller.rb, line 8 def configure_permitted_parameters devise_parameter_sanitizer.permit(:sign_up, keys: [:username]) devise_parameter_sanitizer.permit(:account_update, keys: [ :avatar, :enterprise, :username, :email, :age, :address, :phone, :password, :password_confirmation ]) end