Created
April 21, 2017 13:47
-
-
Save brandonhilkert/4e052c155415ca71f868737c6753c25b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def connection_link | |
if likely_private_messages_connection? | |
["#", { data: { toggle: "modal", target: "#no-activities-modal" } }] | |
else | |
h.child_path(connection.child) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= link_to(*connection_presenter.connection_link) do %> | |
Fancy link | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment