lib/ripple.rb in ripple-0.5.1 vs lib/ripple.rb in ripple-0.6.0

- old
+ new

@@ -26,13 +26,15 @@ autoload :EmbeddedDocument autoload :Document autoload :PropertyTypeMismatch autoload :Translation + DEFAULT_CONFIG = {} + class << self # @return [Riak::Client] The client for the current thread. def client - Thread.current[:ripple_client] ||= Riak::Client.new + Thread.current[:ripple_client] ||= Riak::Client.new(config) end # Sets the client for the current thread. # @param [Riak::Client] value the client def client=(value)