mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
jiggle comment
This commit is contained in:
parent
49386412ca
commit
41631311e9
1 changed files with 4 additions and 3 deletions
|
@ -14,10 +14,11 @@ class SiteCustomization < ActiveRecord::Base
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
# 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)
|
||||
env = env.instance_variable_get('@environment')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue