diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/journal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 5b05f0fa0..c20aa8d9d 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -22,7 +22,7 @@ class Journal < ActiveRecord::Base belongs_to :issue, :foreign_key => :journalized_id belongs_to :user - has_many :details, :class_name => "JournalDetail", :dependent => :delete_all + has_many :details, :class_name => "JournalDetail", :dependent => :delete_all, :inverse_of => :journal attr_accessor :indice attr_protected :id |