Commit db4a4b85 authored by Alper Akgun's avatar Alper Akgun Committed by Douglas Barbosa Alexandre

Clarify querying ActiveRecord models

parent 766263d7
......@@ -43,10 +43,13 @@ instance_of_object.method(:foo).source_location
project.method(:private?).source_location
```
## Query an object
## Query the database using an ActiveRecord Model
```ruby
o = Object.where('attribute like ?', 'ex')
m = Model.where('attribute like ?', 'ex%')
# for example to query the projects
projects = Project.where('path like ?', 'Oumua%')
```
## View all keys in cache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment