This way we have a controller just to manage Poll::Question::Answer related documents in the same way we have for videos and images.
8 lines
167 B
Ruby
8 lines
167 B
Ruby
class Admin::Poll::Questions::Answers::Documents::IndexComponent < ApplicationComponent
|
|
attr_reader :answer
|
|
|
|
def initialize(answer)
|
|
@answer = answer
|
|
end
|
|
end
|