Skip to content
Browse files

read ENV['RELOAD']

  • Loading branch information...
1 parent a61b9ab commit 0a39c60e0eade0cf66b3d9e081cb60e6de45d3fd @pietia pietia committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/dm-hibernate-adapter/spec/setup.rb
View
5 lib/dm-hibernate-adapter/spec/setup.rb
@@ -18,7 +18,10 @@ module Adapters
class HibernateAdapter < Adapter
def setup!
- adapter = DataMapper.setup(:default, DB_CONFIGS[(ENV['DIALECT'] || :H2_EMB).to_sym])
+ adapter = DataMapper.setup(
+ :default,
+ DB_CONFIGS[(ENV['DIALECT'] || :H2_EMB).to_sym].merge(:reload => (ENV['RELOAD'] || false))
+ )
test_connection(adapter)
adapter

0 comments on commit 0a39c60

Please sign in to comment.
Something went wrong with that request. Please try again.