@@ -38,7 +38,7 class Journal < ActiveRecord::Base | |||
|
38 | 38 | :conditions => "#{Journal.table_name}.journalized_type = 'Issue' AND" + |
|
39 | 39 | " (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')"} |
|
40 | 40 | |
|
41 | def save | |
|
41 | def save(*args) | |
|
42 | 42 | # Do not save an empty journal |
|
43 | 43 | (details.empty? && notes.blank?) ? false : super |
|
44 | 44 | end |
General Comments 0
You need to be logged in to leave comments.
Login now