Files
nairobi/app/components/comments/avatar_component.rb
2024-04-11 18:48:33 +02:00

14 lines
273 B
Ruby

class Comments::AvatarComponent < ApplicationComponent
attr_reader :comment
def initialize(comment)
@comment = comment
end
private
def special_avatar(image_name, options = {})
image_tag(image_name, { size: 32, alt: "" }.merge(options))
end
end