lib/blendris/model.rb in blendris-0.0.4 vs lib/blendris/model.rb in blendris-0.5

- old
+ new

@@ -74,9 +74,10 @@ on_change = lambda { self.fire_on_change_for name } options = options.merge(:model => self, :on_change => on_change) options[:type].new subkey, options end + alias :[] :redis_symbol # Calculate the key to address the given child node. def subkey(child) sanitize_key "#{self.key}:#{child}" end