From 41631311e9112fb7745a7d95e8442c154d97a24f Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 10 Apr 2014 16:36:03 +1000 Subject: [PATCH] jiggle comment --- app/models/site_customization.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/models/site_customization.rb b/app/models/site_customization.rb index 5b3161967..22e0a6b49 100644 --- a/app/models/site_customization.rb +++ b/app/models/site_customization.rb @@ -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