Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Replace deprecated link_to_function with link_to
Browse files Browse the repository at this point in the history
link_to_function is no longer present in Rails, replaced it with a
link_to call with an onclick attrib instead
  • Loading branch information
crispygoth committed Jun 19, 2019
1 parent 16941cd commit 5118bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- if message = flash[type]
- type = :warning if type == :alert
%div.section#flash{:class => type}
.close= link_to_function icon(:close), "jQuery('#flash').hide()"
.close= link_to icon(:close), '#', onclick: "jQuery('#flash').hide(); return false;"
%p
= icon(type)
= h message
Expand Down

0 comments on commit 5118bd2

Please sign in to comment.