lib/hanami/cli/commands/new/config/environment.erb in hanami-1.1.1 vs lib/hanami/cli/commands/new/config/environment.erb in hanami-1.2.0.beta1

- old
+ new

@@ -14,11 +14,11 @@ # * SQL adapter # adapter :sql, 'sqlite://db/<%= project %>_development.sqlite3' # adapter :sql, 'postgresql://localhost/<%= project %>_development' # adapter :sql, 'mysql://localhost/<%= project %>_development' # - adapter :<%= database_config_hash[:type] %>, ENV['DATABASE_URL'] + adapter :<%= database_config_hash[:type] %>, ENV.fetch('DATABASE_URL') <%- if database_config.sql? -%> ## # Migrations # @@ -41,9 +41,9 @@ environment :production do logger level: :info, formatter: :json, filter: [] mailer do - delivery :smtp, address: ENV['SMTP_HOST'], port: ENV['SMTP_PORT'] + delivery :smtp, address: ENV.fetch('SMTP_HOST'), port: ENV.fetch('SMTP_PORT') end end end