@@ -9,9 +9,9 @@ defmodule Mix.Pow.Phoenix.Mailer do
9
9
"""
10
10
@ spec create_view_file ( atom ( ) , binary ( ) , atom ( ) , binary ( ) , [ binary ( ) ] ) :: :ok
11
11
def create_view_file ( module , name , web_mod , web_prefix , mails ) do
12
- subjects = subjects_methods ( module , name , mails )
13
- path = Path . join ( [ web_prefix , "views" , Macro . underscore ( module ) , "#{ name } _view.ex" ] )
14
- content = """
12
+ subjects = subjects_methods ( module , name , mails )
13
+ path = Path . join ( [ web_prefix , "views" , Macro . underscore ( module ) , "#{ name } _view.ex" ] )
14
+ content = """
15
15
defmodule #{ inspect ( web_mod ) } .#{ inspect ( module ) } .#{ Macro . camelize ( name ) } View do
16
16
use #{ inspect ( web_mod ) } , :mailer_view
17
17
@@ -27,8 +27,8 @@ defmodule Mix.Pow.Phoenix.Mailer do
27
27
"""
28
28
@ spec create_templates ( atom ( ) , binary ( ) , binary ( ) , [ binary ( ) ] ) :: :ok
29
29
def create_templates ( module , name , web_prefix , mails ) do
30
- path = Path . join ( [ web_prefix , "templates" , Macro . underscore ( module ) , name ] )
31
30
template_module = template_module ( module , name )
31
+ path = Path . join ( [ web_prefix , "templates" , Macro . underscore ( module ) , name ] )
32
32
33
33
Enum . each ( mails , fn mail ->
34
34
for type <- [ :html , :text ] do
0 commit comments