query_helper 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: 35b77867868fa498434ed87e31245f1b1e784d52a9c38ef7f7b4256437b97fe5
4
- data.tar.gz: 7ba04fe2ece760c4febe40ac2fe7ef19d4e65a06d81cd30fc4c0f809c643b613
3
+ metadata.gz: a05ee45cead980d9af0727e330cdb4ca1f17377206bf644a527cde3c07813d8c
4
+ data.tar.gz: 933de9b27523b996b459a6db419e4fb03020ce5a66d0175ef7d1b6214d1a736c
5
5
  SHA512:
6
- metadata.gz: 0e60c8d34809ae6aafee2282419ba6a04360701ef3997f31fa88aeb09bc142d9b72ee13af1d74c8a12bf9127ac3f77f05e65c2c5c3932427f9cd9a2a38d9bcf9
7
- data.tar.gz: cfb6c302bd792ca879933a604733d94b4c8ac8c32c510153e1fead0f438add92fd570868e28b63cd45559de7ee34ebaf51cab80ee05fa092cf34bc96b7d28416
6
+ metadata.gz: 065551a6c55575d59bb44724fddb0642690f9bac7868fb978cf7899ee3484f75abf965c5fbe9126ecf925c1ce800e149c9e828392b49a2c307cd61f41228103c
7
+ data.tar.gz: 252be407717cf277b4c6f8f9f6f4fd6ef342d57054087444db07c64ef50740c4c828b6e4c22c7cb026218fd47924c58fb9206b218444d68083ac3be68e5e5687
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- query_helper (0.2.1)
4
+ query_helper (0.2.2)
5
5
  activerecord (~> 5.0)
6
6
  activesupport (~> 5.0)
7
7
 
@@ -1,3 +1,3 @@
1
1
  class QueryHelper
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/query_helper.rb CHANGED
@@ -184,7 +184,7 @@ class QueryHelper
184
184
  end
185
185
 
186
186
  def clean_results
187
- @results.map!{ |r| r.except("_query_full_count") } if @page && @per_page
187
+ @results.map!{ |r| r.except("_query_full_count") } if @page && @per_page && !@single_record
188
188
  end
189
189
 
190
190
  def pagination_results
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-31 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler