Files
grecia/app/components/comments/votes_component.rb
Javi Martín 78f372fd0b Move votes partials to components
We're going to change the code quite a bit, and with components we can
easily extract methods when necessary.
2022-02-21 18:47:13 +01:00

9 lines
220 B
Ruby

class Comments::VotesComponent < ApplicationComponent
attr_reader :comment
delegate :user_signed_in?, :can?, :link_to_signin, :link_to_signup, to: :helpers
def initialize(comment)
@comment = comment
end
end