lib/ohm.rb in ohm-0.0.37 vs lib/ohm.rb in ohm-0.0.38

- old
+ new

@@ -7,11 +7,11 @@ require File.join(File.dirname(__FILE__), "ohm", "compat-1.8.6") require File.join(File.dirname(__FILE__), "ohm", "key") require File.join(File.dirname(__FILE__), "ohm", "collection") module Ohm - VERSION = "0.0.37" + VERSION = "0.0.38" # Provides access to the Redis database. This is shared accross all models and instances. def redis threaded[:redis] ||= connection(*options) end @@ -198,11 +198,11 @@ class Set < Collection Raw = Ohm::Set def inspect - "#<Set (#{model}): #{all.inspect}>" + "#<Set (#{model}): #{raw.to_a.inspect}>" end # Returns an intersection with the sets generated from the passed hash. # # @see Ohm::Model.find @@ -263,10 +263,10 @@ def unshift(model) raw.unshift(model.id) end def inspect - "#<List (#{model}): #{all.inspect}>" + "#<List (#{model}): #{raw.to_a.inspect}>" end end class Index < Set def apply(operation, hash, glue)