Session LazyHash#inspect triggers the hash to load
This commit is contained in:
parent
acd0612cde
commit
5fbacde2af
@ -47,6 +47,11 @@ def data
|
||||
to_hash
|
||||
end
|
||||
|
||||
def inspect
|
||||
load! unless @loaded
|
||||
super
|
||||
end
|
||||
|
||||
private
|
||||
def loaded?
|
||||
@loaded
|
||||
|
Loading…
Reference in New Issue
Block a user