Skip to content
Snippets Groups Projects
Commit 3002a894 authored by Matt Jankowski's avatar Matt Jankowski Committed by Eugen Rochko
Browse files

Remove unused style helper (#3145)

parent 17ba6620
No related branches found
No related tags found
No related merge requests found
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment