Community view shows the polls for the given proposal.
This commit is contained in:
Juan Salvador Pérez García
2018-07-13 18:06:10 +02:00
parent 7e43206ac0
commit ba753f3649
11 changed files with 79 additions and 32 deletions

View File

@@ -33,6 +33,7 @@ class Proposal < ActiveRecord::Base
has_many :proposal_notifications, dependent: :destroy
has_many :proposal_executed_dashboard_actions, dependent: :destroy
has_many :proposal_dashboard_actions, through: :proposal_executed_dashboard_actions
has_many :polls, as: :related
validates :title, presence: true
validates :question, presence: true