diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 14:58:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 14:58:27 +0000 |
commit | e75549cc8ec42f1398734796f2e456e187dfd13c (patch) | |
tree | 4ada09b2b2f96fe6560eb699603a43f42644ca92 /vendor/plugins/acts_as_attachable | |
parent | 9e83ee2ddf3caf2b6b9887a1426bc610cd3364ad (diff) | |
download | redmine-e75549cc8ec42f1398734796f2e456e187dfd13c.tar.gz redmine-e75549cc8ec42f1398734796f2e456e187dfd13c.zip |
Removed useless after_initialize callback.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8289 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins/acts_as_attachable')
-rw-r--r-- | vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb | 5 |
1 files changed, 0 insertions, 5 deletions
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 |