app/controllers/plug/application_controller.rb in plug-0.1.11 vs app/controllers/plug/application_controller.rb in plug-0.1.12
- old
+ new
@@ -1,9 +1,9 @@
module Plug
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
- unless Rails.env.test?
- # http_basic_authenticate_with name: Plug.auth_user, password: Plug.auth_password
+ if Plug.auth_user.present? && Plug.auth_password.present?
+ http_basic_authenticate_with name: Plug.auth_user, password: Plug.auth_password
end
end
end