Move question form view to component

This commit is contained in:
Javi Martín
2022-09-15 15:24:21 +02:00
parent ecd22131f1
commit d561a295e7
3 changed files with 52 additions and 40 deletions

View File

@@ -0,0 +1,11 @@
class Admin::Poll::Questions::FormComponent < ApplicationComponent
include TranslatableFormHelper
include GlobalizeHelper
attr_reader :poll, :question, :url
def initialize(poll, question, url:)
@poll = poll
@question = question
@url = url
end
end