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
373 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], is_index_table: false) if opts[:is_doctrines_index].present?
search_doctrines_path(subject_ids: [subject_id], is_index_table: true)
end
end