hot fix to take into account preproduction
This commit is contained in:
@@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base
|
|||||||
private
|
private
|
||||||
|
|
||||||
def authenticate_http_basic
|
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|
|
authenticate_or_request_with_http_basic do |username, password|
|
||||||
username == Rails.application.secrets.http_basic_username && password == Rails.application.secrets.http_basic_password
|
username == Rails.application.secrets.http_basic_username && password == Rails.application.secrets.http_basic_password
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class CensusApi
|
|||||||
end
|
end
|
||||||
|
|
||||||
def end_point_available?
|
def end_point_available?
|
||||||
Rails.env.staging? || Rails.env.production?
|
Rails.env.staging? || Rails.env.preproduction? || Rails.env.production?
|
||||||
end
|
end
|
||||||
|
|
||||||
def stubbed_response
|
def stubbed_response
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class SMSApi
|
|||||||
end
|
end
|
||||||
|
|
||||||
def end_point_available?
|
def end_point_available?
|
||||||
Rails.env.staging? || Rails.env.production?
|
Rails.env.staging? || Rails.env.preproduction? || Rails.env.production?
|
||||||
end
|
end
|
||||||
|
|
||||||
def stubbed_response
|
def stubbed_response
|
||||||
|
|||||||
Reference in New Issue
Block a user