79546212

Date: 2025-03-31 12:27:50
Score: 1
Natty:
Report link

From 2025 year from Rails 7.2.2.1.

For me work this variant:

another_ip = IPAddr.new('127.1.2.3').to_s

@request.headers['REMOTE_ADDR'] = another_ip

get '/admin/login'

# if you debugging in your code, then

=> #<ActionController::TestRequest GET "http://admin/auth" for 127.1.2.3>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Combos