Skip to content

Commit

Permalink
Fix ruby warning
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
y-yagi committed Jun 9, 2017
1 parent 26b8e2b commit 6011fa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sass/rails/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6011fa5

Please sign in to comment.