Class: Decidim::Proposals::ValuationAssignment

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Loggable, Traceable
Defined in:
decidim-proposals/app/models/decidim/proposals/valuation_assignment.rb

Overview

A valuation assignment links a proposal and a Valuator user role. Valuators will be users in charge of defining the monetary cost of a proposal.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object


15
16
17
# File 'decidim-proposals/app/models/decidim/proposals/valuation_assignment.rb', line 15

def self.log_presenter_class_for(_log)
  Decidim::Proposals::AdminLog::ValuationAssignmentPresenter
end

Instance Method Details

#valuatorObject


19
20
21
# File 'decidim-proposals/app/models/decidim/proposals/valuation_assignment.rb', line 19

def valuator
  valuator_role.user
end