jiggle comment
This commit is contained in:
parent
49386412ca
commit
41631311e9
|
@ -14,10 +14,11 @@ class SiteCustomization < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def compile_stylesheet(scss)
|
def compile_stylesheet(scss)
|
||||||
# Get the sprockets environment. In production Rails.application.assets is a
|
|
||||||
# Sprockets::Index instead of Sprockets::Environment, there is no cleaner way
|
|
||||||
# to get the environment from the index.
|
|
||||||
env = Rails.application.assets
|
env = Rails.application.assets
|
||||||
|
|
||||||
|
# In production Rails.application.assets is a Sprockets::Index
|
||||||
|
# instead of Sprockets::Environment, there is no cleaner way
|
||||||
|
# to get the environment from the index.
|
||||||
if env.is_a?(Sprockets::Index)
|
if env.is_a?(Sprockets::Index)
|
||||||
env = env.instance_variable_get('@environment')
|
env = env.instance_variable_get('@environment')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue