You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If anyone calls `to_sgid` on a model in the console it will
show the secret of the encryptor.
By overriding the `inspect` method to only show the class name we can
avoid accidentally outputting sensitive information.
Before:
```ruby
SignedGlobalID.create(Person.new(5)).inspect
"#<SignedGlobalID:0x0000000104888038 ... @secret=\"muchSECRETsoHIDDEN\ ... >"
```
After:
```ruby
SignedGlobalID.create(Person.new(5)).inspect
"#<SignedGlobalID:0x0000000104888038>"
```
0 commit comments