Sha256: 828892c22a488ee46701c0cccefe4d9fb31bbad54b767802c1f2e679f181e0f5
Contents?: true
Size: 427 Bytes
Versions: 4
Compression:
Stored size: 427 Bytes
Contents
class WorkEffortAssignment < ActiveRecord::Base belongs_to :work_effort belongs_to :assigned_to, :polymorphic => true belongs_to :assigned_by, :polymorphic => true validates :assigned_to, :presence => {:message => 'Assigned to cannot be blank'} validates :work_effort, :presence => {:message => 'Work effort cannot be blank'} validates :assigned_by, :presence => {:message => 'Assinged by cannot be blank'} end
Version data entries
4 entries across 4 versions & 1 rubygems