Red favicon for dev (#2470)

* Set a dev specific favicon

* Consistent spacing

* Add trailing slash for consistency

* Update to remove interpolation
This commit is contained in:
Lindsey Bieda
2017-04-26 09:45:27 -04:00
committed by Eugen Rochko
parent 416c9675fc
commit 25cbb8454c
3 changed files with 6 additions and 0 deletions

View File

@ -13,4 +13,9 @@ module ApplicationHelper
other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale)
other_classes
end
def favicon_path
env_suffix = Rails.env.production? ? '' : '-dev'
asset_path "favicon#{env_suffix}.ico"
end
end