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.
|
class AnalysisFormComponent < BaseComponent |
|
attr_reader :doctrine, :opts |
|
|
|
def initialize(current_user:, doctrine:, opts:) |
|
@doctrine = doctrine |
|
@opts = opts |
|
end |
|
|
|
def render? |
|
doctrine.present? && opts[:form_url].present? && opts[:form_method].present? |
|
end |
|
end
|
|
|