[FEATURE-REQUEST] Allow to {:ok, conn} on action
in any resource_actions
to support redirect somewhere else
#267
Labels
enhancement
New feature or request
Describe the problem you're proposing to solve
So I have a action in
resource_actions
that requires redirect to some internal page after performing the actionHowever
action
only accepts{:ok, record} | {:error, changeset} | {:error, record, custom_error}
as a return value, and if you modify with theconn
it will successfully redirect but raise an error something likeDescribe the solution you'd like
Maybe we can pattern match a
Plug.Conn
in this partkaffy/lib/kaffy_web/controllers/resource_controller.ex
Lines 326 to 337 in c0b16ca
and return as is since it was a conn.
Let me know if this is a valid solution, Im happy to work on it 👍
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: