lib/regurgitator/domain_path.rb in regurgitator-0.1.0 vs lib/regurgitator/domain_path.rb in regurgitator-0.2.0
- old
+ new
@@ -25,9 +25,10 @@
else
@app.call(env)
end
end
- def initialize(app, db) # :nodoc:
- endpoint_init(app, Hash === db ? db[:db] : db)
+ def initialize(app, opts) # :nodoc:
+ opts = { :db => opts } unless Hash === opts
+ endpoint_init(app, opts[:db], opts[:reproxy_key])
end
end