forked from fixin.me/fixin.me
Separate root routes for un- and authenticated users
Closes #34 Closes #47
This commit is contained in:
@@ -31,18 +31,6 @@ class ApplicationController < ActionController::Base
|
||||
session[:revert_to_id].present?
|
||||
end
|
||||
|
||||
def after_sign_in_path_for(scope)
|
||||
if current_user.at_least(:admin)
|
||||
users_path
|
||||
else
|
||||
edit_user_registration_path
|
||||
end
|
||||
end
|
||||
|
||||
def after_sign_out_path_for(scope)
|
||||
new_user_session_path
|
||||
end
|
||||
|
||||
class << self
|
||||
attr_reader :navigation_menu_tab
|
||||
def navigation_tab(name)
|
||||
|
||||
Reference in New Issue
Block a user