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
#add_breadcrumb(name, path = nil) ⇒ Object
29
30
31
|
# File 'app/controllers/application_controller.rb', line 29
def add_breadcrumb(name, path = nil)
breadcrumbs << Breadcrumb.new(name, path)
end
|
#after_sign_in_path_for(_resource) ⇒ Object
16
17
18
19
|
# File 'app/controllers/application_controller.rb', line 16
def after_sign_in_path_for(_resource)
mediaflux_passthru_path
end
|
#breadcrumbs ⇒ Object
25
26
27
|
# File 'app/controllers/application_controller.rb', line 25
def breadcrumbs
@breadcrumbs ||= []
end
|
#new_session_path(_scope) ⇒ Object
12
13
14
|
# File 'app/controllers/application_controller.rb', line 12
def new_session_path(_scope)
new_user_session_path
end
|
#require_admin_user ⇒ Object
21
22
23
|
# File 'app/controllers/application_controller.rb', line 21
def require_admin_user
head :forbidden unless current_user&.eligible_sysadmin?
end
|