We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
ap
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
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv #Clinician:0x000000012838e2c0 { } => nil
irb(main):004:0> ap c, object_id: false
#Clinician:0x000000012838e2c0 { } => nil
irb(main):005:0> ap c, object_id: true
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: