Public view for suggested actions as well as resources has been completelly redesigned. Private side for this feature has been adapted as well in order to meet the requirements.
11 lines
379 B
Ruby
11 lines
379 B
Ruby
class ProposalExecutedDashboardAction < ActiveRecord::Base
|
|
belongs_to :proposal
|
|
belongs_to :proposal_dashboard_action
|
|
|
|
has_many :administrator_tasks, as: :source, dependent: :destroy
|
|
|
|
validates :proposal, presence: true, uniqueness: { scope: :proposal_dashboard_action }
|
|
validates :proposal_dashboard_action, presence: true
|
|
validates :executed_at, presence: true
|
|
end
|