Closed QuinnWilton closed 5 years ago
Thanks for raising the issue. Could you send me a link so that I can find out more info about the Phoenix configuration field for generators?
This is the best reference I can find :)
https://github.com/phoenixframework/phoenix/blob/v1.3.4/lib/mix/tasks/phx.gen.html.ex#L32
In version 2.0, the function to work out the user_context module has been removed, so you will need to set the user_context in the config anyway.
As you are using an umbrella app, issue #83 might be of some interest to you.
I have an umbrella application with my business logic in an app named
AppExample
, and my web application in an app namedAppExampleWeb
. This means that myuser_context
isApp.Accounts
, instead ofAppWeb.Accounts
, the default thatPhauxth
uses. This is fixable by overwriting theuser_context
config forPhauxth
, but Phoenix actually already has a configuration field that specifies what application your contexts live in, for the purpose of using generators:Instead of defaulting the
user_context
to the current application, you could instead see whether the generators are configured in such a manner.