summaryrefslogtreecommitdiffstats
path: root/app/models/attachment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/attachment.rb')
-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?