diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-24 10:23:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-24 10:23:53 +0000 |
commit | 726a9aa809383a8af2c3592cf573a655c24d2253 (patch) | |
tree | 4ff8827cd229c174ca77b93b63c624ce1b5fcafb | |
parent | e04c819895cd31cb6639992e4dbe3296a19ac079 (diff) | |
download | redmine-726a9aa809383a8af2c3592cf573a655c24d2253.tar.gz redmine-726a9aa809383a8af2c3592cf573a655c24d2253.zip |
Set :inverse_of on details association.
git-svn-id: http://svn.redmine.org/redmine/trunk@13936 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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 |