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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4cccf9b76a69bb881721b4886d5644936e54fb4
4
- data.tar.gz: 7bc177f04b22baba4d43c8cc7bd6dd4565c75903
3
+ metadata.gz: e78c20abd2af3ae522de310886510bff9af995f9
4
+ data.tar.gz: 88550271b7d48bf53d7ec8fc52c656a46c7e92f2
5
5
  SHA512:
6
- metadata.gz: a6940fed4b197503112298c425753f81fa2f8362b046dcf83987c8d8a51c3c053acefce87716925e95adcbb3db2ff573db3ca7ff5afa5df1e7bb467ae8a56aaa
7
- data.tar.gz: 8c868bce2e07247c9b9bdf4fcb6dabc622c29a0d69ea3d2e030f6c0281be14fd14fc66f1b12c4732b30a8db1ca72c79fa84aecbc4d2e6300bde22816e41bd2c2
6
+ metadata.gz: 5bcb206b6fc5df9ae16f1da236ad11782989f0c7443b702f40ab06b1316d1084003ab3c0ef8b015a15c104a25d4f8cf9548bf8cf1ad304d2aad3a9fc5bce99b5
7
+ data.tar.gz: d3c75a8412d2542df1b8102eaefb04718339c967188768c078c9503437450a91233587c1c9c00caa9dae732c7489184da4607fd0c7b7287418b9b1c09a6f6e23
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_record_addons (0.1.1)
4
+ active_record_addons (0.1.2)
5
5
  activerecord
6
6
 
7
7
  GEM
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)).where_sql
16
+ User.where(last_name: %w(Cruise Cavill Rhames)).to_where_clause
17
17
  # => "users"."last_name" IN ('Cruise', 'Cavill', 'Rhames')
18
18
  ```
@@ -1,6 +1,6 @@
1
1
  module ActiveRecordAddons::Relation
2
2
  # Emits the "where clause" portion of the query as interpolated SQL
3
- def where_sql
3
+ def to_where_clause
4
4
  connection.unprepared_statement do
5
5
  connection.to_sql where_clause, where_clause.binds
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordAddons
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins