Skip to content

Commit

Permalink
Merge pull request #4040 from skateman/generic-object-fonticon
Browse files Browse the repository at this point in the history
Do not use generic object fileicon if no picture specified
  • Loading branch information
mzazrivec committed Jun 5, 2018
2 parents 04100d2 + 0a9c31e commit 9520a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/decorators/generic_object_decorator.rb
Expand Up @@ -4,6 +4,6 @@ def self.fonticon
end

def fileicon
try(:picture) ? "/pictures/#{picture.basename}" : "100/generic_object.png"
try(:picture) ? "/pictures/#{picture.basename}" : nil
end
end

0 comments on commit 9520a1d

Please sign in to comment.