Class: ROM::Mongo::Relation
- Inherits:
-
Relation
- Object
- Relation
- ROM::Mongo::Relation
- Defined in:
- lib/rom/mongo/relation.rb
Class Method Summary collapse
- .inherited(klass) ⇒ Object private
Instance Method Summary collapse
Class Method Details
.inherited(klass) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 |
# File 'lib/rom/mongo/relation.rb', line 7 def self.inherited(klass) super klass.auto_curry :by_pk end |
Instance Method Details
#by_pk(id) ⇒ Object
27 28 29 |
# File 'lib/rom/mongo/relation.rb', line 27 def by_pk(id) find(_id: id) end |