Sha256: 3c8d191a17882ec93be80053550dddff70201771ac1c7d42f17acc492bf9d204
Contents?: true
Size: 712 Bytes
Versions: 5
Compression:
Stored size: 712 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
Version data entries
5 entries across 5 versions & 1 rubygems