Skip to content

object_id option not operating as expected #422

Open
@MadBomber

Description

@MadBomber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions