Skip to content

Commit

Permalink
Merge 0a18c89 into cf9d00d
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed Jan 30, 2019
2 parents cf9d00d + 0a18c89 commit 4c40fd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/jsi/base.rb
Expand Up @@ -198,7 +198,10 @@ def as_json(*opt)

# @return [Object] an opaque fingerprint of this JSI for FingerprintHash
def fingerprint
{class: self.class, instance: instance}
{
class: self.class,
instance: instance.is_a?(JSON::Node) ? {class: JSON::Node, content: instance.content} : instance,
}
end
include FingerprintHash

Expand Down

0 comments on commit 4c40fd7

Please sign in to comment.