lib/hanami/generators/application/app/lib/app_name.rb.tt in hanami-0.7.3 vs lib/hanami/generators/application/app/lib/app_name.rb.tt in hanami-0.8.0
- old
+ new
@@ -5,19 +5,22 @@
Hanami::Model.configure do
# Database adapter
#
# Available options:
#
+ # * File System adapter
+ # adapter type: :file_system, uri: 'file:///db/bookshelf_development'
+ #
# * Memory adapter
# adapter type: :memory, uri: 'memory://localhost/<%= config[:app_name] %>_development'
#
# * SQL adapter
# adapter type: :sql, uri: 'sqlite://db/<%= config[:app_name] %>_development.sqlite3'
# adapter type: :sql, uri: 'postgres://localhost/<%= config[:app_name] %>_development'
# adapter type: :sql, uri: 'mysql://localhost/<%= config[:app_name] %>_development'
#
- adapter type: :<%= config[:database_config][:type] %>, uri: ENV['<%= config[:app_name].to_env_s %>_DATABASE_URL']
+ adapter type: :<%= config[:database_config][:type] %>, uri: ENV['DATABASE_URL']
<%- if config[:database_config][:type] == :sql -%>
##
# Migrations
#
@@ -28,16 +31,10 @@
##
# Database mapping
#
# Intended for specifying application wide mappings.
#
- # You can specify mapping file to load with:
- #
- # mapping "#{__dir__}/config/mapping"
- #
- # Alternatively, you can use a block syntax like the following:
- #
mapping do
# collection :users do
# entity User
# repository UserRepository
#
@@ -52,8 +49,8 @@
# See http://hanamirb.org/guides/mailers/delivery
delivery do
development :test
test :test
- # production :stmp, address: ENV['SMTP_PORT'], port: 1025
+ # production :smtp, address: ENV['SMTP_PORT'], port: 1025
end
end.load!