Sha256: a00a9664c6718ea18d905491b75ac4cdab05e9e3e166e1955a313f37fd658b6c
Contents?: true
Size: 441 Bytes
Versions: 3
Compression:
Stored size: 441 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery before_action :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.permit(:sign_up, keys: [:email, :password, :bio]) end end
Version data entries
3 entries across 3 versions & 1 rubygems