don't minfiy on staging

This commit is contained in:
Konstantin Haase 2012-12-16 17:35:21 +01:00
parent de0790c5d9
commit 55bdaf780f

View File

@ -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