[Ruby] Fix sets/related tags exception

This commit is contained in:
Earlopain 2022-05-28 13:23:13 +02:00
parent 42578e58a5
commit 82f285339f
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ class BulkRelatedTagQuery
end
end
def serializable_hash(**options)
def serializable_hash(*)
tags
end

View File

@ -37,7 +37,7 @@ class RelatedTagQuery
tags_with_categories(tags)
end
def serializable_hash(options)
def serializable_hash(*)
{
query: query,
category: category,

View File

@ -36,7 +36,7 @@ class TagsPreview
end
end
def serializable_hash(**options)
def serializable_hash(*)
@tags
end
end

View File

@ -10,7 +10,7 @@
<% if @post_set && @post_set.id %>
<li>|</li>
<%= subnav_link_to "Posts", posts_path(tags: "set:#{@post_set.shortname}") %>
<%= subnav_link_to "Maintainers", action: "maintainers", id: params[:id] %>
<%= subnav_link_to "Maintainers", maintainers_post_set_path(@post_set) %>
<% if @post_set.is_owner?(CurrentUser.user) || CurrentUser.is_admin? %>
<%= subnav_link_to "Edit", edit_post_set_path(@post_set) %>