Commit f2957176 authored by Holger Just's avatar Holger Just

Added helper functions to base journal class

parent bcbb328c
......@@ -12,4 +12,12 @@ class Journal < ActiveRecord::Base
# Do not save an empty journal
!(details.empty? && notes.blank?)
end
def journalized
nil
end
def project
journalized.respond_to?('project') ? journalized.project: nil
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment