From 9f47736cff4e7a6f262c309f4a8a54432adc5cb3 Mon Sep 17 00:00:00 2001 From: Sasha Koss Date: Mon, 13 Jan 2014 16:42:15 +0800 Subject: [PATCH] Ability to disable CoffeeScript source maps `CS_SOURCE_MAPS=false` env variable will disable CoffeeScript source maps --- lib/coffee-rails-source-maps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coffee-rails-source-maps.rb b/lib/coffee-rails-source-maps.rb index 01983e7..90d31bf 100644 --- a/lib/coffee-rails-source-maps.rb +++ b/lib/coffee-rails-source-maps.rb @@ -3,7 +3,7 @@ # Based on https://gist.github.com/naan/5096056 # config/initializers/source_maps.rb -if Rails.env.development? +if Rails.env.development? && ENV['CS_SOURCE_MAPS'] != 'false' require 'coffee-script' #make sure CoffeeScript is loaded before we overwrite it. module CoffeeScript