Session LazyHash#inspect triggers the hash to load

This commit is contained in:
Joshua Peek 2009-02-07 16:47:44 -06:00
parent acd0612cde
commit 5fbacde2af

@ -47,6 +47,11 @@ def data
to_hash
end
def inspect
load! unless @loaded
super
end
private
def loaded?
@loaded