From 55bdaf780f2f9bb61f375565144fac9a1a7b60d8 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Sun, 16 Dec 2012 17:35:21 +0100 Subject: [PATCH] don't minfiy on staging --- lib/travis/assets.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/travis/assets.rb b/lib/travis/assets.rb index f5e5b8a9..b37412c9 100644 --- a/lib/travis/assets.rb +++ b/lib/travis/assets.rb @@ -17,12 +17,16 @@ module Travis @env = ENV['ENV'] end + def staging? + ENV['API_ENDPOINT'] =~ /staging/ unless development? + end + def production? - env == 'production' + !staging? and !development? end def development? - !production? + env != 'production' end def vendor_order