Skip to content

Commit be96c49

Browse files
define the asset_url function in the right context.
1 parent 8d0462d commit be96c49

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/sassc/rails/functions.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# frozen_string_literal: true
22

3-
require 'sprockets/sass_functions'
3+
require 'sprockets/sassc_processor'
44

5-
module Sprockets
6-
module SassFunctions
7-
def asset_data_url(path)
8-
::SassC::Script::Value::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
9-
end
5+
module Sprockets::SasscProcessor::Functions
6+
def asset_data_url(path)
7+
::SassC::Script::Value::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
108
end
119
end
1210

13-
::SassC::Script::Functions.send :include, Sprockets::SassFunctions
11+
::SassC::Script::Functions.send :include, Sprockets::SasscProcessor::Functions

0 commit comments

Comments
 (0)