Module: Sufia::DashboardControllerBehavior

Extended by:
ActiveSupport::Concern
Included in:
DashboardController
Defined in:
app/controllers/concerns/sufia/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.



24
25
26
# File 'app/controllers/concerns/sufia/dashboard_controller_behavior.rb', line 24

def activity
  render json: human_readable_user_activity
end

#indexObject

Render our dashboard page



14
15
16
17
18
19
20
21
# File 'app/controllers/concerns/sufia/dashboard_controller_behavior.rb', line 14

def index
  gather_dashboard_information
  respond_to do |format|
    format.html { }
    format.rss  { render layout: false }
    format.atom { render layout: false }
  end
end