Module: Hyrax::DashboardControllerBehavior
- Extended by:
- ActiveSupport::Concern
- Included in:
- DashboardController
- Defined in:
- app/controllers/concerns/hyrax/dashboard_controller_behavior.rb
Instance Method Summary collapse
-
#activity ⇒ Object
Returns a formated list of recent events in JSON for use with AJAX.
-
#index ⇒ Object
Render our dashboard page.
Instance Method Details
#activity ⇒ Object
Returns a formated list of recent events in JSON for use with AJAX.
22 23 24 |
# File 'app/controllers/concerns/hyrax/dashboard_controller_behavior.rb', line 22 def activity render json: human_readable_user_activity end |
#index ⇒ Object
Render our dashboard page
12 13 14 15 16 17 18 19 |
# File 'app/controllers/concerns/hyrax/dashboard_controller_behavior.rb', line 12 def index gather_dashboard_information respond_to do |format| format.html {} format.rss { render layout: false } format.atom { render layout: false } end end |