summaryrefslogtreecommitdiffstats
path: root/app/models/journal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r--app/models/journal.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index 64483d21d..d02067a9d 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -44,4 +44,9 @@ class Journal < ActiveRecord::Base
c = details.detect {|detail| detail.prop_key == 'status_id'}
(c && c.value) ? IssueStatus.find_by_id(c.value.to_i) : nil
end
+
+ def new_value_for(prop)
+ c = details.detect {|detail| detail.prop_key == prop}
+ c ? c.value : nil
+ end
end