From 6011fa5956993190cf1bc4854d84117ab8369101 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 9 Jun 2017 08:01:27 +0900 Subject: [PATCH] Fix ruby warning This fixes following warning: ``` gems/sass-rails-5.0.6/lib/sass/rails/helpers.rb:6: warning: method redefined; discarding old asset_data_url gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:253: warning: previous definition of asset_data_url was here ``` --- lib/sass/rails/helpers.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sass/rails/helpers.rb b/lib/sass/rails/helpers.rb index bc5a6cb..6ff3fa0 100644 --- a/lib/sass/rails/helpers.rb +++ b/lib/sass/rails/helpers.rb @@ -3,6 +3,7 @@ module Sprockets module SassFunctions + remove_method :asset_data_url if method_defined?(:asset_data_url) def asset_data_url(path) Sass::Script::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")") end