summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-27 17:20:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-27 17:20:57 +0000
commit233990dac389ad7b6924703a3752fcfb858e5060 (patch)
treec4428e7298b26cf3020c6510b17af71f0d218628 /app
parentc383486d711d12a2a9e716bedf3a444e140c00d6 (diff)
downloadredmine-233990dac389ad7b6924703a3752fcfb858e5060.tar.gz
redmine-233990dac389ad7b6924703a3752fcfb858e5060.zip
* Updated German translation (Thomas Löber)
* Updated Spanish translation (Gumer Coronel Pérez) * Fixed: test in method project in Attachment Model useless (Cyril Mougel) * Fixed: public/.htaccess lacks support for mod_fcgid and adds handlers without checking for their existance (Nils Adermann) git-svn-id: http://redmine.rubyforge.org/svn/trunk@934 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index 7262498c4..927aa1735 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -84,7 +84,7 @@ class Attachment < ActiveRecord::Base
end
def project
- container.is_a?(Project) ? container : container.project
+ container.project
end
def image?