Sha256: e3a8b00aa75fa6184a0838351022c59c5a6c3d23e6ce422ea026477e617d6a10

Contents?: true

Size: 459 Bytes

Versions: 63

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module Olivander
  module Components
    class PostComponent < ViewComponent::Base
      renders_one :tools
      delegate :user_image_path, to: :helpers

      def initialize(poster, posted, updated, text: nil, id: nil, avatar_url: nil)
        super
        @poster = poster
        @posted = posted
        @updated = updated
        @text = text
        @id = id
        @avatar_url = avatar_url
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.40 app/components/olivander/components/post_component.rb
five-two-nw-olivander-0.1.2.39 app/components/olivander/components/post_component.rb
five-two-nw-olivander-0.1.2.38 app/components/olivander/components/post_component.rb