spree/spree — pull request #4490 by filipechagas (2014-03-24 19:27:09+00:00)
Title: Use ActionDispatch::Request#remote_ip instead of reinvent the wheel

http://apidock.com/rails/ActionDispatch/Request/remote_ip