Class: ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ApplicationController
show all
- Defined in:
- app/controllers/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#after_sign_in_path_for(resource_or_scope) ⇒ Object
20
21
22
|
# File 'app/controllers/application_controller.rb', line 20
def after_sign_in_path_for(resource_or_scope)
domains_path
end
|
#any_admin_user_exists? ⇒ Boolean
7
8
9
10
11
12
|
# File 'app/controllers/application_controller.rb', line 7
def any_admin_user_exists?
return if current_admin_user
if AdminUser.first.nil?
redirect_to first_admin_user_path
end
end
|
#first_admin_user_action? ⇒ Boolean
14
15
16
17
18
|
# File 'app/controllers/application_controller.rb', line 14
def first_admin_user_action?
params[:controller] == 'admin_users' and (
params[:action] == 'first' or params[:action] == 'create'
)
end
|