From: Jean-Philippe Lang Date: Sat, 24 Jan 2015 10:23:53 +0000 (+0000) Subject: Set :inverse_of on details association. X-Git-Tag: 3.0.0~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=726a9aa809383a8af2c3592cf573a655c24d2253;p=redmine.git Set :inverse_of on details association. git-svn-id: http://svn.redmine.org/redmine/trunk@13936 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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