We're also moving the path argument in the `link_to` calls to a different line, since it's what we usually do.
13 lines
217 B
Ruby
13 lines
217 B
Ruby
class Debates::MarkFeaturedActionComponent < ApplicationComponent
|
|
attr_reader :debate
|
|
use_helpers :can?
|
|
|
|
def initialize(debate)
|
|
@debate = debate
|
|
end
|
|
|
|
def render
|
|
can? :mark_featured, debate
|
|
end
|
|
end
|