More advance signup flow
This commit is contained in:
@@ -36,7 +36,7 @@ private
|
||||
def set_locale
|
||||
I18n.locale = (params[:locale].presence || I18n.default_locale).to_sym
|
||||
end
|
||||
|
||||
|
||||
def _render_with_renderer_json(resource, options)
|
||||
serializer = build_json_serializer(resource, options)
|
||||
|
||||
@@ -55,6 +55,13 @@ private
|
||||
"theme1"
|
||||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
case resource
|
||||
when Employee then supplier_root_path
|
||||
else root_path
|
||||
end
|
||||
end
|
||||
|
||||
def check_active_list_state
|
||||
if current_user.try(:active_list_id)
|
||||
unless active_list.active?
|
||||
|
||||
Reference in New Issue
Block a user