We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57693d1 commit 9a6e3aeCopy full SHA for 9a6e3ae
actionpack/lib/action_view/helpers/url_helper.rb
@@ -235,13 +235,8 @@ def link_to(*args, &block)
235
html_options = convert_options_to_data_attributes(options, html_options)
236
url = url_for(options)
237
238
- if html_options
239
- html_options = html_options.stringify_keys
240
- href = html_options['href']
241
- tag_options = tag_options(html_options)
242
- else
243
- tag_options = nil
244
- end
+ href = html_options['href']
+ tag_options = tag_options(html_options)
245
246
href_attr = "href=\"#{html_escape(url)}\"" unless href
247
"<a #{href_attr}#{tag_options}>#{html_escape(name || url)}</a>".html_safe
0 commit comments