Sha256: 126548d760e30f8a6eb4d4d34cf226630a96cc70c2f46c863d115d21901f3e52

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

class SystemTaskResolution < ActiveRecord::Base
  attr_accessible :name, :parent, :parent_id
  
  belongs_to :parent, class_name: "SystemTaskResolution"
  
  def self.RESOLVED
    readonly.find_by_name("RESOLVED")
  end
  
  def self.CANCELED
    readonly.find_by_name("CANCELED")
  end
  
  def self.BLOCKED
    readonly.find_by_name("BLOCKED")
  end  
  
  def self.RESOLVED_WITH_BUSINESS
    readonly.find_by_name("RESOLVED_WITH_BUSINESS")
  end
  
  
  def name
    I18n.t("task_resolutions.%s" % super)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 app/models/system_task_resolution.rb
guara-0.0.1.rc app/models/system_task_resolution.rb