1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/application/middleware
Sam Aarons f9a84bb236 Refactor ActionDispatch::RemoteIp
Refactored IP address checking in ActionDispatch::RemoteIp to rely on
the IPAddr class instead of the unwieldly regular expression to match
IP addresses. This commit keeps the same api but allows users to pass
IPAddr objects to config.action_dispatch.trusted_proxies in addition
to passing strings and regular expressions.

Example:

    # config/environments/production.rb
    config.action_dispatch.trusted_proxies = IPAddr.new('4.8.15.0/16')
2014-08-21 18:38:08 -07:00
..
cache_test.rb Calls to the application constant have been refactored to use 2013-06-10 20:59:37 -07:00
cookies_test.rb
exceptions_test.rb replace U+00A0 with whitespace 2013-11-21 13:25:16 +02:00
remote_ip_test.rb Refactor ActionDispatch::RemoteIp 2014-08-21 18:38:08 -07:00
sendfile_test.rb
session_test.rb Replace config.secret_key_base with secrets.secret_key_base in test 2013-12-12 14:59:11 -05:00
static_test.rb