Project

General

Profile

Feature #12401 » document.rb.patch

Patch the document model - Michael Esemplare, 2012-11-19 21:43

View differences:

/var/www/redmine/app/models/document.rb~ 2012-11-17 07:36:57.381607947 +0000
19 19
  include Redmine::SafeAttributes
20 20
  belongs_to :project
21 21
  belongs_to :category, :class_name => "DocumentCategory", :foreign_key => "category_id"
22
  acts_as_attachable :delete_permission => :manage_documents
22
  acts_as_attachable :delete_permission => :delete_documents
23 23

  
24 24
  acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project
25 25
  acts_as_event :title => Proc.new {|o| "#{l(:label_document)}: #{o.title}"},
(1-1/5)