@@ -22,7 +22,7 class Journal < ActiveRecord::Base | |||||
22 | belongs_to :issue, :foreign_key => :journalized_id |
|
22 | belongs_to :issue, :foreign_key => :journalized_id | |
23 |
|
23 | |||
24 | belongs_to :user |
|
24 | belongs_to :user | |
25 | has_many :details, :class_name => "JournalDetail", :dependent => :delete_all |
|
25 | has_many :details, :class_name => "JournalDetail", :dependent => :delete_all, :inverse_of => :journal | |
26 | attr_accessor :indice |
|
26 | attr_accessor :indice | |
27 | attr_protected :id |
|
27 | attr_protected :id | |
28 |
|
28 |
General Comments 0
You need to be logged in to leave comments.
Login now