Phoenix.Naming.resource_name/2

Parsed documentation:
View on GitHub
Extracts the resource name from an alias.

## Examples

    iex> Phoenix.Naming.resource_name(MyApp.User)
    "user"

    iex> Phoenix.Naming.resource_name(MyApp.UserView, "View")
    "user"
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.