Skip to content

Commit 6011fa5

Browse files
committed
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 ```
1 parent 26b8e2b commit 6011fa5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/sass/rails/helpers.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
module Sprockets
55
module SassFunctions
6+
remove_method :asset_data_url if method_defined?(:asset_data_url)
67
def asset_data_url(path)
78
Sass::Script::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
89
end

0 commit comments

Comments
 (0)