Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #4918: url_helper_patch.txt

File url_helper_patch.txt, 0.6 kB (added by ssinghi@kreeti.com, 2 years ago)

Patch file

Line 
1 Index: actionpack/lib/action_view/helpers/url_helper.rb
2 ===================================================================
3 --- actionpack/lib/action_view/helpers/url_helper.rb    (revision 4300)
4 +++ actionpack/lib/action_view/helpers/url_helper.rb    (working copy)
5 @@ -244,7 +244,7 @@
6  
7        # Returns true if the current page uri is generated by the options passed (in url_for format).
8        def current_page?(options)
9 -        CGI.escapeHTML(url_for(options)) == @controller.request.request_uri
10 +        url_for(options) == CGI.escapeHTML(@controller.request.request_uri)
11        end
12  
13        private