query_helper 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 0cd426d029eb9da4019e480513ef71aadce1e5b16a91deee0249fa68835a9bb8
4
- data.tar.gz: c29a81325cff0e279a5b692f36b676447b0a9b37a41a4d2b8e4bda4c2ad26ff9
3
+ metadata.gz: a11328276be2040e6ba1f3d9987c67f7d7ba9c10a04f37d5b8eb06709b301558
4
+ data.tar.gz: d33e4bde437e7b3242917f77083f599a8a454465f1bda8811e21af77c5103edf
5
5
  SHA512:
6
- metadata.gz: 6cd9491c4e1ace4374fd0c2dade604ef1ff0358eeffdc702acd3c9a7a17c5aa5d7d85a87106414ec20eb40fbed026c6ac918695d504fbd5c012a532ae13b5e4a
7
- data.tar.gz: a4710f9e84c6133cd29db042a4f0d2f7ac5816ffdf2a4be767094f9f87f94b72298e0452e12be9aebfc0bcdf0fbc67d5548114ad35025d59ae38e828d4f5c5fe
6
+ metadata.gz: 13406b128956708c3b94207751d0cb7fab06f8f5623068f21fbe81bc6609f34c2e0b2b303738ba17d330ba738ce482b3c97370a07125c3047dbb5805fc5da039
7
+ data.tar.gz: 4248b024a2fcef22ebea5045b739f7dedf6a45c4b50418fdcc0bee64fc6a83894ea5aad59ba86e1543298d614f9beb2ea901645bd462fcceea5570156c12de35
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- query_helper (0.2.3)
4
+ query_helper (0.2.4)
5
5
  activerecord (~> 5.0)
6
6
  activesupport (~> 5.0)
7
7
 
@@ -1,3 +1,3 @@
1
1
  class QueryHelper
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
data/lib/query_helper.rb CHANGED
@@ -123,6 +123,7 @@ class QueryHelper
123
123
 
124
124
  def to_sql
125
125
  query = build_query()
126
+ return query if @bind_variables.length == 0
126
127
  begin
127
128
  return @model.sanitize_sql_array([query, @bind_variables])
128
129
  rescue NoMethodError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-21 00:00:00.000000000 Z
11
+ date: 2020-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler