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