id?()
Queries the primary key value.
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 32 def id? sync_with_transaction_state query_attribute(self.class.primary_key) end