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:
parent
9e83ee2ddf
commit
e75549cc8e
@ -33,7 +33,6 @@ module Redmine
|
|||||||
:order => "#{Attachment.table_name}.created_on",
|
:order => "#{Attachment.table_name}.created_on",
|
||||||
:dependent => :destroy)
|
:dependent => :destroy)
|
||||||
attr_accessor :unsaved_attachments
|
attr_accessor :unsaved_attachments
|
||||||
after_initialize :initialize_unsaved_attachments
|
|
||||||
send :include, Redmine::Acts::Attachable::InstanceMethods
|
send :include, Redmine::Acts::Attachable::InstanceMethods
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -53,10 +52,6 @@ module Redmine
|
|||||||
user.allowed_to?(self.class.attachable_options[:delete_permission], self.project)
|
user.allowed_to?(self.class.attachable_options[:delete_permission], self.project)
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize_unsaved_attachments
|
|
||||||
@unsaved_attachments ||= []
|
|
||||||
end
|
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user