From b823ce71d6406e962ca650151965811d4ea95f78 Mon Sep 17 00:00:00 2001 From: tanwcw Date: Thu, 13 Oct 2016 12:13:02 -0700 Subject: [PATCH] Fix deprecations for Sprockets 3 --- lib/ionicons-rails.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ionicons-rails.rb b/lib/ionicons-rails.rb index d3fc17b..a5b7787 100644 --- a/lib/ionicons-rails.rb +++ b/lib/ionicons-rails.rb @@ -2,7 +2,9 @@ module Ionicons module Rails class Engine < ::Rails::Engine initializer "ionicons-rails.assets.precompile" do |app| - app.config.assets.precompile << %r(ionicons\.(?:eot|svg|ttf|woff)$) + unless Sprockets::Rails::VERSION.starts_with?('3') + app.config.assets.precompile << %r(ionicons\.(?:eot|svg|ttf|woff)$) + end end end end