It's probably better to just pick one of these options :)
In PhauxthTestWeb.Email, the Mailer is aliased without using the Web suffix (i.e. PhauxthTest.Mailer, not PhauxthTestWeb.Mailer). Whether or not this is a problem, depends on the decision made on what the correct module name and location should be.
As with #94, with some initial guidance from a maintainer, I'd be happy to create a pull request for this myself.
After posting #94 , I noticed another minor inconsistency in the code
mix phauxth.new
generates.In this case, I ran
mix phauxth.new --api --confirm
, which also generates aMailer
module.There are a couple of inconsistencies in this, of which I'm not sure what's the right name / location to use.
Examples given for an app named
PhauxthTest
:phauxth_test_web
folder, but is namedPhauxthTest.Mailer
:config/config.exs
, this module is referred to as follows:In
config/test.exs
, theWeb
suffix is omitted, however:It's probably better to just pick one of these options :)
PhauxthTestWeb.Email
, theMailer
is aliased without using theWeb
suffix (i.e.PhauxthTest.Mailer
, notPhauxthTestWeb.Mailer
). Whether or not this is a problem, depends on the decision made on what the correct module name and location should be.As with #94, with some initial guidance from a maintainer, I'd be happy to create a pull request for this myself.