|
|
@ -1,6 +1,7 @@
|
|
|
|
class OrgDocumentComment < ActiveRecord::Base
|
|
|
|
class OrgDocumentComment < ActiveRecord::Base
|
|
|
|
attr_accessible :content, :creator_id, :organization_id, :parent_id, :reply_id, :title,:sticky,:locked
|
|
|
|
attr_accessible :content, :creator_id, :organization_id, :parent_id, :reply_id, :title,:sticky,:locked
|
|
|
|
include Redmine::SafeAttributes
|
|
|
|
include Redmine::SafeAttributes
|
|
|
|
|
|
|
|
include ApplicationHelper
|
|
|
|
belongs_to :organization
|
|
|
|
belongs_to :organization
|
|
|
|
belongs_to :creator, :class_name => 'User', :foreign_key => 'creator_id'
|
|
|
|
belongs_to :creator, :class_name => 'User', :foreign_key => 'creator_id'
|
|
|
|
has_many :editor_of_documents, :dependent => :destroy
|
|
|
|
has_many :editor_of_documents, :dependent => :destroy
|
|
|
|