hot fix to take into account preproduction

This commit is contained in:
rgarcia
2015-09-02 11:36:30 +02:00
parent 15115f0179
commit abfc93ea78
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base
private
def authenticate_http_basic
if Rails.env.staging? || Rails.env.production?
if Rails.env.staging? || Rails.env.preproduction? || Rails.env.production?
authenticate_or_request_with_http_basic do |username, password|
username == Rails.application.secrets.http_basic_username && password == Rails.application.secrets.http_basic_password
end

View File

@@ -49,7 +49,7 @@ class CensusApi
end
def end_point_available?
Rails.env.staging? || Rails.env.production?
Rails.env.staging? || Rails.env.preproduction? || Rails.env.production?
end
def stubbed_response

View File

@@ -34,7 +34,7 @@ class SMSApi
end
def end_point_available?
Rails.env.staging? || Rails.env.production?
Rails.env.staging? || Rails.env.preproduction? || Rails.env.production?
end
def stubbed_response