Class: SystemTaskResolution

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/system_task_resolution.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.BLOCKEDObject



14
15
16
# File 'app/models/system_task_resolution.rb', line 14

def self.BLOCKED
  readonly.find_by_name("BLOCKED")
end

.CANCELEDObject



10
11
12
# File 'app/models/system_task_resolution.rb', line 10

def self.CANCELED
  readonly.find_by_name("CANCELED")
end

.RESOLVEDObject



6
7
8
# File 'app/models/system_task_resolution.rb', line 6

def self.RESOLVED
  readonly.find_by_name("RESOLVED")
end

.RESOLVED_WITH_BUSINESSObject



18
19
20
# File 'app/models/system_task_resolution.rb', line 18

def self.RESOLVED_WITH_BUSINESS
  readonly.find_by_name("RESOLVED_WITH_BUSINESS")
end

Instance Method Details

#nameObject



23
24
25
# File 'app/models/system_task_resolution.rb', line 23

def name
  I18n.t("task_resolutions.%s" % super)
end