Class: Rack::Request
- Inherits:
-
Object
- Object
- Rack::Request
- Defined in:
- lib/monkey_patches.rb
Instance Method Summary collapse
Instance Method Details
#url_with_no_query ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/monkey_patches.rb', line 36 def url_with_no_query url = scheme + "://" url << host if scheme == "https" && port != 443 || scheme == "http" && port != 80 url << ":#{port}" end url << path url end |