lib/generators/source/puma.rb.erb in h2ocube_rails_puma-0.0.6 vs lib/generators/source/puma.rb.erb in h2ocube_rails_puma-0.0.7

- old
+ new

@@ -1,7 +1,11 @@ application_path = File.expand_path('../../', __FILE__) stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log" -threads 0,1 -workers 1 preload_app! + +on_worker_boot do + ActiveSupport.on_load(:active_record) do + ActiveRecord::Base.establish_connection + end +end