You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
383 B

class SubjectIndexFormComponent < BaseComponent
attr_reader :subject_index, :form_url, :form_method, :parent_id
def initialize(current_user:, opts:)
@subject_index = opts[:subject_index]
@form_url = opts[:form_url]
@form_method = opts[:form_method]
@parent_id = parent_id
end
def render?
subject_index.present? && form_url.present? && form_method.present?
end
end