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
320 B
13 lines
320 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? |
|
|
|
doctrines_subject_index_path(subject_id) |
|
end |
|
end
|
|
|