mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-18 21:22:06 -04:00
use a default icon if no plant_part icon
This commit is contained in:
1 parent
d0154a8b60
commit
fd80fc98f1
1 file changed
+1
-1
@@ -92,7 +92,7 @@ module IconsHelper
|
||||
end
|
||||
|
||||
def plant_part_icon(name)
|
||||
image_icon "plant_parts/#{name}" if Files.exists? Rails.root.join('app', 'assets', 'images', 'icons', "{name}.svg")
|
||||
image_icon "plant_parts/#{name}" if File.exist? Rails.root.join('app', 'assets', 'images', 'icons', "{name}.svg")
|
||||
planting_icon
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user