lib/authlogic/test_case/mock_request.rb in authlogic-4.2.0 vs lib/authlogic/test_case/mock_request.rb in authlogic-4.3.0
- old
+ new
@@ -6,11 +6,10 @@
def initialize(controller)
self.controller = controller
end
def ip
- controller &&
- controller.respond_to?(:env) &&
+ controller&.respond_to?(:env) &&
controller.env.is_a?(Hash) &&
controller.env["REMOTE_ADDR"] ||
"1.1.1.1"
end