Sha256: 6fd1907ddcff358a7d1f2d663fab977b9051e65ac959cc4e2d00b233da8e42aa

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
talkie-0.1.0 app/helpers/talkie/application_helper.rb