lib/lotus/generators/application/container/lib/app_name.rb.tt in lotusrb-0.4.1 vs lib/lotus/generators/application/container/lib/app_name.rb.tt in lotusrb-0.5.0
- old
+ new
@@ -1,6 +1,7 @@
require 'lotus/model'
+require 'lotus/mailer'
Dir["#{ __dir__ }/<%= config[:app_name] %>/**/*.rb"].each { |file| require_relative file }
Lotus::Model.configure do
##
# Database adapter
@@ -42,7 +43,18 @@
# repository UserRepository
#
# attribute :id, Integer
# attribute :name, String
# end
+ end
+end.load!
+
+Lotus::Mailer.configure do
+ root "#{ __dir__ }/<%= config[:app_name] %>/mailers"
+
+ # See http://lotusrb.org/guides/mailers/delivery
+ delivery do
+ development :test
+ test :test
+ # production :stmp, address: ENV['SMTP_PORT'], port: 1025
end
end.load!