Removed useless after_initialize callback.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8289 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-18 14:58:27 +00:00
parent 9e83ee2ddf
commit e75549cc8e
1 changed files with 0 additions and 5 deletions

View File

@ -33,7 +33,6 @@ module Redmine
:order => "#{Attachment.table_name}.created_on",
:dependent => :destroy)
attr_accessor :unsaved_attachments
after_initialize :initialize_unsaved_attachments
send :include, Redmine::Acts::Attachable::InstanceMethods
end
end
@ -53,10 +52,6 @@ module Redmine
user.allowed_to?(self.class.attachable_options[:delete_permission], self.project)
end
def initialize_unsaved_attachments
@unsaved_attachments ||= []
end
module ClassMethods
end
end