Feature #12401 » document.rb.patch
| /var/www/redmine/app/models/document.rb~ 2012-11-17 07:36:57.381607947 +0000 | ||
|---|---|---|
|
include Redmine::SafeAttributes
|
||
|
belongs_to :project
|
||
|
belongs_to :category, :class_name => "DocumentCategory", :foreign_key => "category_id"
|
||
|
acts_as_attachable :delete_permission => :manage_documents
|
||
|
acts_as_attachable :delete_permission => :delete_documents
|
||
|
acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project
|
||
|
acts_as_event :title => Proc.new {|o| "#{l(:label_document)}: #{o.title}"},
|
||