don't minfiy on staging
This commit is contained in:
parent
de0790c5d9
commit
55bdaf780f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user