analytics / lib /plausible_web /views /debug_view.ex
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
88211d3 verified
Raw
History Blame Contribute Delete
290 Bytes
defmodule PlausibleWeb.DebugView do
use PlausibleWeb, :view
def controller_name(phoenix_controller_name) do
phoenix_controller_name
|> String.to_existing_atom()
|> Module.split()
|> Enum.drop_while(&String.starts_with?(&1, "Plausible"))
|> Enum.join(".")
end
end