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:
commit
47d88fc4d7
1 changed files with 1 additions and 1 deletions
|
@ -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: "/",
|
||||
|
|
Loading…
Reference in a new issue