Module: Hyrax::DashboardControllerBehavior

Extended by:
ActiveSupport::Concern
Included in:
DashboardController
Defined in:
app/controllers/concerns/hyrax/dashboard_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#activityObject

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

#indexObject

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