Sha256: 91137b8fbc3a41e08366674c392f88f245fce1f649a68c6ee6a346391f59184e

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

class WorkEffortStatusType < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  has_many   :work_effort_statuses
  has_one    :previous_status_type, :class_name => 'WorkEffortStatusType', :foreign_key => 'previous_status_id'
  has_one    :next_status_type, :class_name => 'WorkEffortStatusType', :foreign_key => 'next_status_id'
  
  def status
    description
  end

  def self.iid(internal_identifier)
  	 	self.where('internal_identifier = ?', internal_identifier).first
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erp_work_effort-3.1.1 app/models/work_effort_status_type.rb
erp_work_effort-3.1.0 app/models/work_effort_status_type.rb