Skip to content

Commit

Permalink
Usage of double colon when referencing Rails
Browse files Browse the repository at this point in the history
This is related to #868
  • Loading branch information
Maxi Gonzalez authored and Maxi Gonzalez committed May 20, 2017
1 parent 05b5385 commit a6afd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/haml/sass_rails_filter.rb
Expand Up @@ -6,7 +6,7 @@ module Filters
class SassRailsTemplate < ::Sass::Rails::SassTemplate
if Gem::Version.new(Sprockets::VERSION) >= Gem::Version.new('3.0.0')
def render(scope=Object.new, locals={}, &block)
environment = ::Sprockets::Railtie.build_environment(Rails.application)
environment = ::Sprockets::Railtie.build_environment(::Rails.application)
scope = environment.context_class.new(
environment: environment,
filename: "/",
Expand Down

0 comments on commit a6afd29

Please sign in to comment.