Use a loop instead of with_collection to render questions
This is what we usually do in components.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Polls::Questions::QuestionComponent < ApplicationComponent
|
||||
attr_reader :question
|
||||
|
||||
def initialize(question:)
|
||||
def initialize(question)
|
||||
@question = question
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user