From fbc28a9d0ff6d47eaf9e65f31f8dc733adfb5de6 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