Class: ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ApplicationController
show all
- Includes:
- Blacklight::Controller, BreadcrumbsOnRails::ActionController, Hydra::Controller::ControllerBehavior, Sufia::Controller
- Defined in:
- app/controllers/application_controller.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.with_themed_layout(view_name = nil) ⇒ Object
14
15
16
17
18
19
20
|
# File 'app/controllers/application_controller.rb', line 14
def self.with_themed_layout(view_name = nil)
if view_name
layout("#{theme}/#{view_name}")
else
layout(theme)
end
end
|
Instance Method Details
#show_action_bar? ⇒ Boolean
64
65
66
|
# File 'app/controllers/application_controller.rb', line 64
def show_action_bar?
true
end
|
#show_site_search? ⇒ Boolean
69
70
71
|
# File 'app/controllers/application_controller.rb', line 69
def show_site_search?
true
end
|
#sufia ⇒ Object
Please be sure to impelement current_user and user_session. Blacklight depends on these methods in order to perform user specific actions.
29
30
31
|
# File 'app/controllers/application_controller.rb', line 29
def sufia
self
end
|