1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-18 13:22:55 +00:00

Set :inverse_of on details association.

git-svn-id: http://svn.redmine.org/redmine/trunk@13936 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-01-24 10:23:53 +00:00
parent e04c819895
commit 726a9aa809

View File

@ -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