From 25cbb8454c691f84c51a99a5d1b221da61ec5cda Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Wed, 26 Apr 2017 09:45:27 -0400 Subject: Red favicon for dev (#2470) * Set a dev specific favicon * Consistent spacing * Add trailing slash for consistency * Update to remove interpolation --- app/helpers/application_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ba6803b4b..d25b12998 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 -- cgit