@@ -31,7 +31,7 module Redmine | |||
|
31 | 31 | attachable_options[:delete_permission] = options.delete(:delete_permission) || "edit_#{self.name.pluralize.underscore}".to_sym |
|
32 | 32 | |
|
33 | 33 | has_many :attachments, lambda {order("#{Attachment.table_name}.created_on ASC, #{Attachment.table_name}.id ASC")}, |
|
34 | options.merge(:as => :container, :dependent => :destroy) | |
|
34 | options.merge(:as => :container, :dependent => :destroy, :inverse_of => :container) | |
|
35 | 35 | send :include, Redmine::Acts::Attachable::InstanceMethods |
|
36 | 36 | before_save :attach_saved_attachments |
|
37 | 37 | end |
General Comments 0
You need to be logged in to leave comments.
Login now