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
326 B

class SubjectsSidenavSubMenuComponent < BaseComponent
attr_reader :opts
def initialize(current_user:, opts:)
@opts = opts
end
def index_url(subject_id)
return search_doctrines_path(subject_ids: [subject_id]) if opts[:is_doctrines_index].present?
search_documents_path(subject_ids: subject_id)
end
end