hot fix to take into account preproduction
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user