Class: CurationConcerns::Admin::WorkflowRolePresenter
- Inherits:
-
Object
- Object
- CurationConcerns::Admin::WorkflowRolePresenter
show all
- Defined in:
- app/presenters/curation_concerns/admin/workflow_role_presenter.rb
Defined Under Namespace
Classes: AgentPresenter, ResponsibilityPresenter
Instance Method Summary
collapse
Instance Method Details
#presenter_for(user) ⇒ Object
8
9
10
11
12
|
# File 'app/presenters/curation_concerns/admin/workflow_role_presenter.rb', line 8
def presenter_for(user)
agent = user.sipity_agent
return unless agent
AgentPresenter.new(agent)
end
|
#users ⇒ Object
4
5
6
|
# File 'app/presenters/curation_concerns/admin/workflow_role_presenter.rb', line 4
def users
::User.all
end
|