Feature #12401 » document.rb.patch
/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}"}, |