Merge branch 'master' of github.com:AyuntamientoMadrid/participacion

This commit is contained in:
Juanjo Bazán
2015-09-02 11:39:32 +02:00
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