Skip to content

Commit

Permalink
add generic_share_link_md application helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Oct 22, 2023
1 parent d88b29f commit 47534d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def generic_share_link(post)
end
end

def generic_share_link_md(post)
"[#{post.title}](#{generic_share_link(post)})"
end

def generic_edit_link(post)
edit_post_url(post)
end
Expand Down

0 comments on commit 47534d6

Please sign in to comment.