diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-19 10:54:47 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-19 16:54:47 +0200 |
commit | 3002a8941944a3913ee95d865894917570451c69 (patch) | |
tree | 17919fc733b4a716fe593f93936d4ff448648e4e /app/helpers | |
parent | 17ba6620048042761dd88b608c8d01ebdb42dc4b (diff) |
Remove unused style helper (#3145)
Diffstat (limited to 'app/helpers')
-rwxr-xr-x | app/helpers/style_helper.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/helpers/style_helper.rb b/app/helpers/style_helper.rb deleted file mode 100755 index 774407b7f..000000000 --- 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 |