diff options
author | Bob Remeika <bob.remeika@gmail.com> | 2009-09-23 01:05:45 -0700 |
---|---|---|
committer | Stefan Penner <stefan.penner@gmail.com> | 2010-01-27 12:44:28 -0600 |
commit | c44682f6ab7f9b6dd3773752723aa8c46d019bde (patch) | |
tree | 8042494df1633857d7c8b38f81d6c270b2f6718b /actionpack/lib/action_view/helpers | |
parent | a792ee5665fff4bd3751e97e1d949b60e73e333d (diff) | |
download | rails-c44682f6ab7f9b6dd3773752723aa8c46d019bde.tar.gz rails-c44682f6ab7f9b6dd3773752723aa8c46d019bde.tar.bz2 rails-c44682f6ab7f9b6dd3773752723aa8c46d019bde.zip |
Implemented a fuller stub in AjaxTestCase for url_for because link_to calls url_for on all urls passed to it. Tests that were testing different input types for the url were failing because of this.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/ajax_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb index 1246ec7107..3be8878f97 100644 --- a/actionpack/lib/action_view/helpers/ajax_helper.rb +++ b/actionpack/lib/action_view/helpers/ajax_helper.rb @@ -19,7 +19,7 @@ module ActionView html["data-remote"] = "true" html.merge!(options) - + url = url_for(url) if url.is_a?(Hash) link_to(name, url, html) end |