Sha256: 893db0515404b21cfa4fad8a7735b1cff5d978869ba7a1f4f2928e200c33b3ed
Contents?: true
Size: 700 Bytes
Versions: 46
Compression:
Stored size: 700 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals # 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 ValuationAssignment < ApplicationRecord include Decidim::Traceable include Decidim::Loggable belongs_to :proposal, foreign_key: "decidim_proposal_id", class_name: "Decidim::Proposals::Proposal" belongs_to :valuator_role, polymorphic: true def self.log_presenter_class_for(_log) Decidim::Proposals::AdminLog::ValuationAssignmentPresenter end def valuator valuator_role.user end end end end
Version data entries
46 entries across 46 versions & 1 rubygems