Sha256: b9ba2a0c51353f6ad5b622355fa5c053dfa589b2e1ad75d7e9d5c45e214c9459

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 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

  # validations
  # @TODO: Validate end_at > begin_at if present
  validates :begin_at,      presence: true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_staff2-3.1.1 app/models/ecm/staff/person_position.rb
ecm_staff2-3.1.0 app/models/ecm/staff/person_position.rb
ecm_staff2-3.0.2 app/models/ecm/staff/person_position.rb
ecm_staff2-3.0.1 app/models/ecm/staff/person_position.rb
ecm_staff2-3.0.0 app/models/ecm/staff/person_position.rb