Skip to content

Instantly share code, notes, and snippets.

@brandonhilkert
Created April 21, 2017 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonhilkert/4e052c155415ca71f868737c6753c25b to your computer and use it in GitHub Desktop.
Save brandonhilkert/4e052c155415ca71f868737c6753c25b to your computer and use it in GitHub Desktop.
def connection_link
if likely_private_messages_connection?
["#", { data: { toggle: "modal", target: "#no-activities-modal" } }]
else
h.child_path(connection.child)
end
end
<%= 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