app/models/ticket.rb
# Return human-readable label for status.
Return human-readable label for status.
Return human - readable label for status .
def status_label
    label = self.status.to_s.gsub('created', 'working').gsub(/_/, ' ').capitalize
    label << '...' unless self.done?
    label << '!' if self.success? == false
    return label
  end
def status_label label = self . status . to_s . gsub ( 'created' , 'working' ) . gsub ( / _ / , ' ' ) . capitalize label << '...' unless self . done? label << '!' if self . success? == false return label end
Return human-readable label for status.
Return human - readable label for status .