Sha256: 34c7eecf37ecd372ce24e817316617596fc756cf89f768f9f3262d4862cae281
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
class Ecm::Staff::PersonPosition < Ecm::Staff::Base # associations has_one :organisation, :through => :business_unit belongs_to :business_unit belongs_to :person, :class_name => Ecm::Staff::Configuration.person_class_name belongs_to :position # attributes attr_accessible :begin_at, :business_unit_id, :end_at, :organisation_id, :person_id, :position_id # validations # @TODO: Validate end_at > begin_at if present validates :begin_at, :presence => true validates :business_unit, :presence => true validates :person, :presence => true validates :position, :presence => true end # class Ecm::Staff::PersonPosition < Ecm::Staff::Base
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_staff-0.0.2.pre | app/models/ecm/staff/person_position.rb |
ecm_staff-0.0.1.pre | app/models/ecm/staff/person_position.rb |