Merge pull request #28902 from voxik/fix-inspect
Prevent negative IDs in output of #inspect.
This commit is contained in:
commit
8619a76be8
@ -58,7 +58,7 @@ def initialize
|
|||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class.name}:0x#{(object_id << 1).to_s(16)} keys=#{@data.size} queries=#{@query_cache.size}>"
|
"#{to_s[0..-2]} keys=#{@data.size} queries=#{@query_cache.size}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cache the templates returned by the block
|
# Cache the templates returned by the block
|
||||||
|
Loading…
Reference in New Issue
Block a user