Magik.Params.plug_srub
You're seeing just the function
plug_srub
, go back to Magik.Params module for more information.
A plug which do srubbing params
Use in Router
defmodule MyApp.Router do
...
plug Magik.Params.plug_srub
...
end
Use in controller
plug Magik.Params.plug_srub when action in [:index, :show]
# or specify which field to scrub
plug Magik.Params.plug_srub, ["id", "keyword"] when action in [:index, :show]