Class: Hyrax::Admin::WorkflowRolesPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/hyrax/admin/workflow_roles_presenter.rb

Overview

Displays a list of users and their associated workflow roles

Defined Under Namespace

Classes: AgentPresenter, ResponsibilityPresenter

Instance Method Summary collapse

Instance Method Details

#presenter_for(user) ⇒ Object


10
11
12
13
14
# File 'app/presenters/hyrax/admin/workflow_roles_presenter.rb', line 10

def presenter_for(user)
  agent = user.sipity_agent
  return unless agent
  AgentPresenter.new(agent)
end

#usersObject


6
7
8
# File 'app/presenters/hyrax/admin/workflow_roles_presenter.rb', line 6

def users
  ::User.registered
end