Merge pull request #28902 from voxik/fix-inspect

Prevent negative IDs in output of #inspect.
This commit is contained in:
Rafael França 2019-12-19 13:20:45 -03:00 committed by GitHub
commit 8619a76be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,7 +58,7 @@ def initialize
end
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
# Cache the templates returned by the block