Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object_id option not operating as expected #422

Open
MadBomber opened this issue Dec 23, 2022 · 0 comments
Open

object_id option not operating as expected #422

MadBomber opened this issue Dec 23, 2022 · 0 comments

Comments

@MadBomber
Copy link

The object_id option is not doing what I expect so either there is a software problem or a wetware problem.

What I'm trying to do is get rid of the object id of an ActiveRecord object when using the ap method.

Software Versions:
Awesome ... 1.9.2
Ruby .......... 3.0.1p64
Rails .......... 6.1.3

Running the Rails Console/Irb ....

irb(main):002:0> c = Clinician.first
Clinician Load (1.1ms) SELECT "clinicians".* FROM "clinicians" ORDER BY "clinicians"."id" ASC LIMIT $1 [["LIMIT", 1]]
=>
#<Clinician:0x000000012838e2c0

irb(main):003:0> ap c

I want to get rid of this object ID

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#Clinician:0x000000012838e2c0 {

}
=> nil

irb(main):004:0> ap c, object_id: false

but it is still here ....

#Clinician:0x000000012838e2c0 {

}
=> nil

irb(main):005:0> ap c, object_id: true

but it is still here ...

#Clinician:0x000000012838e2c0 {

}
=> nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant