active_record_addons 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/active_record_addons/relation.rb +1 -1
- data/lib/active_record_addons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e78c20abd2af3ae522de310886510bff9af995f9
|
4
|
+
data.tar.gz: 88550271b7d48bf53d7ec8fc52c656a46c7e92f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bcb206b6fc5df9ae16f1da236ad11782989f0c7443b702f40ab06b1316d1084003ab3c0ef8b015a15c104a25d4f8cf9548bf8cf1ad304d2aad3a9fc5bce99b5
|
7
|
+
data.tar.gz: d3c75a8412d2542df1b8102eaefb04718339c967188768c078c9503437450a91233587c1c9c00caa9dae732c7489184da4607fd0c7b7287418b9b1c09a6f6e23
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,6 +13,6 @@ ActiveRecord::Relation.send :include, ActiveRecordAddons::Relation
|
|
13
13
|
Extract the where clause from an `ActiveRecord::Relation`
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
User.where(last_name: %w(Cruise Cavill Rhames)).
|
16
|
+
User.where(last_name: %w(Cruise Cavill Rhames)).to_where_clause
|
17
17
|
# => "users"."last_name" IN ('Cruise', 'Cavill', 'Rhames')
|
18
18
|
```
|