summaryrefslogtreecommitdiff
path: root/app/models/backup_job.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-07 14:30:21 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-07 14:30:21 +0100
commit515dcaf96c05e4b5d6aaaf4ff1e438ebf9a3c56a (patch)
tree2db2c05d2dfa3208f1b0f2fff01dbbaa7ea25852 /app/models/backup_job.rb
parent26eae9e70097be1cbff8baba9c3641512bcf6635 (diff)
Breadcrumbs for BackupJobs.
Diffstat (limited to 'app/models/backup_job.rb')
-rw-r--r--app/models/backup_job.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/backup_job.rb b/app/models/backup_job.rb
index 8bb7959..96574a7 100644
--- a/app/models/backup_job.rb
+++ b/app/models/backup_job.rb
@@ -6,6 +6,10 @@ class BackupJob < ActiveRecord::Base
before_create :set_state_to_queued
after_create :initiate_backup
+ def to_s
+ self.started_at.to_s
+ end
+
private
def set_state_to_queued
self.state = 'queued'