instance method
to_s
Ruby on Rails 7.1.6
Since v3.2.22.5Signature
to_s()
Memoizes the value returned by #calculate_ip and returns it for ActionDispatch::Request to use.
Source
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 167
def to_s
@ip ||= calculate_ip
end
Defined in actionpack/lib/action_dispatch/middleware/remote_ip.rb line 167
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::RemoteIp::GetIp