Method: Sohm::Model#load!

Defined in:
lib/sohm.rb

#load!Object

Preload all the attributes of this model from Redis. Used internally by ‘Model::[]`.



950
951
952
953
954
# File 'lib/sohm.rb', line 950

def load!
  update_attributes(Utils.dict(redis.call("HGETALL", key))) if id
  @serial_attributes_changed = false
  return self
end