Skip to content

Commit

Permalink
Merge pull request #930 from emaxi/master
Browse files Browse the repository at this point in the history
Usage of double colon when referencing Rails
  • Loading branch information
k0kubun committed May 24, 2017
2 parents 05b5385 + a6afd29 commit 47d88fc
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 47d88fc

Please sign in to comment.