aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorBob Remeika <bob.remeika@gmail.com>2009-09-23 01:05:45 -0700
committerStefan Penner <stefan.penner@gmail.com>2010-01-27 12:44:28 -0600
commitc44682f6ab7f9b6dd3773752723aa8c46d019bde (patch)
tree8042494df1633857d7c8b38f81d6c270b2f6718b /actionpack/lib/action_view/helpers
parenta792ee5665fff4bd3751e97e1d949b60e73e333d (diff)
downloadrails-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.rb2
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