Fixed #239
Proposals dashboard refactored to dashboard. Added missing specs for the dashboard.
This commit is contained in:
@@ -31,8 +31,8 @@ class Proposal < ActiveRecord::Base
|
||||
belongs_to :geozone
|
||||
has_many :comments, as: :commentable, dependent: :destroy
|
||||
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 :dashboard_executed_actions, dependent: :destroy, class_name: 'Dashboard::ExecutedAction'
|
||||
has_many :dashboard_actions, through: :dashboard_executed_actions, class_name: 'Dashboard::Action'
|
||||
has_many :polls, as: :related
|
||||
|
||||
validates :title, presence: true
|
||||
|
||||
Reference in New Issue
Block a user