lib/hanami/cli/commands/generate/mailer/mailer.erb in hanami-1.2.0 vs lib/hanami/cli/commands/generate/mailer/mailer.erb in hanami-1.3.0.beta1
- old
+ new
@@ -1,7 +1,9 @@
-class Mailers::<%= mailer.classify %>
- include Hanami::Mailer
+module Mailers
+ class <%= mailer.classify %>
+ include Hanami::Mailer
- from '<%= from %>'
- to '<%= to %>'
- subject '<%= subject %>'
+ from '<%= from %>'
+ to '<%= to %>'
+ subject '<%= subject %>'
+ end
end