From e75549cc8ec42f1398734796f2e456e187dfd13c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Dec 2011 14:58:27 +0000 Subject: Removed useless after_initialize callback. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8289 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'vendor') diff --git a/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb b/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb index d59c89110..e840770a3 100644 --- a/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb +++ b/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb @@ -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 -- cgit v1.2.3