Skip to content

Commit

Permalink
fix: update forgotten server filters links (nanego#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-brousse authored Oct 9, 2024
1 parent b96d168 commit 2e42e92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def respond_to_missing?(symbol, include_all)
def _permitted_attributes_names
attribute_names.map do |attribute_name|
if attribute_name.end_with?("_ids")
{ attribute_name => [] }
[attribute_name, { attribute_name => [] }]
else
attribute_name
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/frames/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
</div>
</div>

<%= render HasManyTurboFrameComponent.new(Server.model_name.human.pluralize, url: servers_path(frame_id: @frame.id), frame_id: dom_id(Server, :table)) %>
<%= render HasManyTurboFrameComponent.new(Server.model_name.human.pluralize, url: servers_path(frame_ids: @frame.id), frame_id: dom_id(Server, :table)) %>

<%= render ChangelogEntries::ObjectListComponent.new(@frame) %>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

class HasManyTurboFrameComponentPreview < ViewComponent::Preview
def default
render(HasManyTurboFrameComponent.new(Server.model_name.human.pluralize, url: servers_path(frame_id: Frame.first.id), frame_id: "table_server"))
render(HasManyTurboFrameComponent.new(Server.model_name.human.pluralize, url: servers_path(frame_ids: Frame.first.id), frame_id: "table_server"))
end
end

0 comments on commit 2e42e92

Please sign in to comment.