instance method
cast_primary_key
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
cast_primary_key(id)
No documentation comment.
Parameters
-
idreq
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 575
def cast_primary_key(id)
model.primary_key_definition.cast(id, model)
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 575
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods