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.
 
 
 
 
 

13 lines
311 B

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