Sha256: e482e6111a0fc41dbda856ef69c4ac088dde2a0af646c6bb25df5237c1b52b6d
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require 'active_support/core_ext/class/inheritable_attributes' module Recliner # Sets the default Recliner::Document database URI. # # ==== Parameters # # * +config+ - either a string (the full database URI) or a hash containing the host, port and database as string keys. def self.configuration=(config) Document.use_database!( case config when String config when Hash "http://#{config['host']}:#{config['port']}/#{config['database']}" else raise ArgumentError, "String or Hash expected" end ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recliner-0.0.1 | lib/recliner/configuration.rb |