Class: Decidim::ActionDelegator::Admin::DelegationForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/action_delegator/admin/delegation_form.rb

Overview

A form object used to create a Delegation

Instance Method Summary collapse

Instance Method Details

#granteeObject



24
25
26
# File 'app/forms/decidim/action_delegator/admin/delegation_form.rb', line 24

def grantee
  User.find_by(id: grantee_id, organization: current_organization) || User.find_by(email: grantee_email, organization: current_organization)
end

#granterObject



20
21
22
# File 'app/forms/decidim/action_delegator/admin/delegation_form.rb', line 20

def granter
  User.find_by(id: granter_id, organization: current_organization) || User.find_by(email: granter_email, organization: current_organization)
end