Method: ModelRecord#find
- Defined in:
- lib/model/the_record.rb
#find(attributes = {}) ⇒ Object
queries the database starting with the current model-record.
Returns the result-set, ie. a Query-Object which contains links to the addressed records.
64 65 66 67 |
# File 'lib/model/the_record.rb', line 64 def find attributes = {} q = OrientSupport::OrientQuery.new from: self, where: attributes query q end |