1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Merge pull request #930 from emaxi/master

Usage of double colon when referencing Rails
This commit is contained in:
Takashi Kokubun 2017-05-24 10:41:14 +09:00 committed by GitHub
commit 47d88fc4d7

View file

@ -6,7 +6,7 @@ module Haml
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: "/",