Move question form view to component
This commit is contained in:
11
app/components/admin/poll/questions/form_component.rb
Normal file
11
app/components/admin/poll/questions/form_component.rb
Normal 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
|
||||
Reference in New Issue
Block a user