Module: ActiveRecord::ConnectionHandling
- Defined in:
- lib/active_record/connection_adapters/runivedo_adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#runivedo_connection(config) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/active_record/connection_adapters/runivedo_adapter.rb', line 17 def runivedo_connection(config) raise ArgumentError, "No univedo url specified. Missing argument: server" unless config[:server] raise ArgumentError, "No univedo app specified. Missing argument: app" unless config[:app] url = config[:server] bucket = config[:bucket] app = config[:app] username = config[:username] uts = config[:uts] ? IO.read(config[:uts]) : nil ConnectionAdapters::RunivedoAdapter.new(url, bucket, app, uts, username, logger, config) end |