From 25d2b17a99a78955a90682fa41fda268c5532129 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Wed, 19 Sep 2012 10:43:40 -0500 Subject: Allow to use a local copy of sprockets-rails during development --- Gemfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index 362e0790fc..d8092de9d9 100644 --- a/Gemfile +++ b/Gemfile @@ -28,7 +28,12 @@ end # This needs to be with require false to avoid # it being automatically loaded by sprockets gem 'uglifier', require: false -gem 'sprockets-rails', github: 'rails/sprockets-rails' + +if ENV['SPROCKETS_RAILS'] + gem 'sprockets-rails', path: ENV['SPROCKETS_RAILS'] +else + gem 'sprockets-rails', github: 'rails/sprockets-rails' +end group :doc do # The current sdoc cannot generate GitHub links due -- cgit v1.2.3