Fix no longer required with Rails 3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9563 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5985713335
commit
584fbc8f8b
|
@ -49,15 +49,6 @@ class Attachment < ActiveRecord::Base
|
||||||
before_save :files_to_final_location
|
before_save :files_to_final_location
|
||||||
after_destroy :delete_from_disk
|
after_destroy :delete_from_disk
|
||||||
|
|
||||||
def container_with_blank_type_check
|
|
||||||
if container_type.blank?
|
|
||||||
nil
|
|
||||||
else
|
|
||||||
container_without_blank_type_check
|
|
||||||
end
|
|
||||||
end
|
|
||||||
alias_method_chain :container, :blank_type_check unless method_defined?(:container_without_blank_type_check)
|
|
||||||
|
|
||||||
# Returns an unsaved copy of the attachment
|
# Returns an unsaved copy of the attachment
|
||||||
def copy(attributes=nil)
|
def copy(attributes=nil)
|
||||||
copy = self.class.new
|
copy = self.class.new
|
||||||
|
|
Loading…
Reference in New Issue