Skip to content

Commit 5c39fc8

Browse files
committed
Remove resource_action pattern in has_many_through
1 parent d3276f9 commit 5c39fc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/backpex/fields/has_many_through.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,8 @@ defmodule Backpex.Fields.HasManyThrough do
408408
{:noreply, socket}
409409
end
410410

411-
defp action_fields(fields, :resource_action), do: action_fields(fields, :index)
412-
413411
defp action_fields(fields, action) do
414-
# Currenly the fields are only filtered by action, not by the fields `can?` option.
412+
# Currently, the fields are only filtered by action, not by the fields `can?` option.
415413
# See https://github.com/naymspace/backpex/pull/1271
416414
LiveResource.fields_by_action(fields, action)
417415
end

0 commit comments

Comments
 (0)