Class: Decidim::ActionDelegator::VoteDelegation
- Inherits:
-
Object
- Object
- Decidim::ActionDelegator::VoteDelegation
- Defined in:
- app/commands/decidim/action_delegator/vote_delegation.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(response, context) ⇒ VoteDelegation
constructor
A new instance of VoteDelegation.
Constructor Details
#initialize(response, context) ⇒ VoteDelegation
Returns a new instance of VoteDelegation.
6 7 8 9 |
# File 'app/commands/decidim/action_delegator/vote_delegation.rb', line 6 def initialize(response, context) @response = response @context = context end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'app/commands/decidim/action_delegator/vote_delegation.rb', line 11 def call PaperTrail.request.controller_info = { decidim_action_delegator_delegation_id: context.delegation.id } WhodunnitVote.new(build_vote, context.current_user) end |