From 3002a8941944a3913ee95d865894917570451c69 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 19 May 2017 10:54:47 -0400 Subject: [PATCH] Remove unused style helper (#3145) --- app/helpers/style_helper.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 app/helpers/style_helper.rb diff --git a/app/helpers/style_helper.rb b/app/helpers/style_helper.rb deleted file mode 100755 index 774407b7fe..0000000000 --- a/app/helpers/style_helper.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module StyleHelper - def stylesheet_for_layout - if asset_exist? 'custom.css' - 'custom' - else - 'application' - end - end - - def asset_exist?(path) - if Rails.configuration.assets.compile - Rails.application.precompiled_assets.include? path - else - Rails.application.assets_manifest.assets[path].present? - end - end -end