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.
23 lines
588 B
23 lines
588 B
class DocumentDoctrineIndexComponent < BaseComponent |
|
with_collection_parameter :doctrine |
|
attr_reader :doctrine |
|
|
|
def initialize(doctrine:, current_user:) |
|
@doctrine = doctrine |
|
end |
|
|
|
delegate :id, to: :doctrine |
|
delegate :subject_ids, to: :doctrine |
|
delegate :content, to: :doctrine |
|
delegate :document_id, to: :doctrine |
|
delegate :annotations, to: :doctrine |
|
delegate :subjects, to: :doctrine |
|
|
|
def doctrine_form_url |
|
jurisprudence_doctrines_path(jurisprudence_id: document_id) |
|
end |
|
|
|
def annotation_form_url |
|
doctrine_annotations_path(doctrine_id: id) |
|
end |
|
end
|
|
|