Skip to content

Commit

Permalink
Merge pull request #4089 from skateman/god-fileicon
Browse files Browse the repository at this point in the history
Don't use generic object definition fileicon if no picture present
  • Loading branch information
mzazrivec authored Jun 8, 2018
2 parents 3c0069b + b29bcc5 commit 782c683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/decorators/generic_object_definition_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ def self.fonticon
end

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

0 comments on commit 782c683

Please sign in to comment.