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



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

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

#usersObject



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

def users
  ::User.registered
end