From 584fbc8f8b52ceed79836d8b2f877d34dcc1e638 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 28 Apr 2012 11:14:16 +0000 Subject: [PATCH] Fix no longer required with Rails 3. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9563 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/attachment.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index a6351da67..c641f3006 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -49,15 +49,6 @@ class Attachment < ActiveRecord::Base before_save :files_to_final_location 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 def copy(attributes=nil) copy = self.class.new