Sha256: e955ad5aea9b6266a4799c6bc8a3e6baa342f6aab97129bfc7f42b6d872068f4
Contents?: true
Size: 851 Bytes
Versions: 12
Compression:
Stored size: 851 Bytes
Contents
module Talkie module ApplicationHelper def link_to_creator(creator, options = {}) creator_handler = creator.send Talkie.comment_creator_handler creator_path = Talkie.creator_path.call(creator, main_app) link_to creator_handler, creator_path, options end def avatar_image_tag(creator) creator_handler = creator.send Talkie.comment_creator_handler image_tag avatar_url(creator), alt: creator_handler, title: creator_handler end def avatar_url(creator) Talkie.creator_avatar_url.call(creator) end def deletable_and_allowed?(comment) deletable? && allow?(:destroy, comment) end def link_to_delete_comment(comment) link_to t('talkie.comment.delete'), [talkie, comment], method: :delete, class: 'talkie-comment-delete' end end end
Version data entries
12 entries across 12 versions & 1 rubygems