Class: Decidim::Proposals::ValuationAssignment
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::Proposals::ValuationAssignment
- Includes:
- Loggable, Traceable
- Defined in:
- 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
16 17 18 |
# File 'app/models/decidim/proposals/valuation_assignment.rb', line 16 def self.log_presenter_class_for(_log) Decidim::Proposals::AdminLog::ValuationAssignmentPresenter end |
Instance Method Details
#valuator ⇒ Object
20 21 22 |
# File 'app/models/decidim/proposals/valuation_assignment.rb', line 20 def valuator valuator_role.user end |