filtering 0.1.4 → 0.1.5

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: 21d50f6ef2c9f05edc0aef68c4b21d41a871188b
4
- data.tar.gz: b74d2791f9e96f550211d2b68a6bc6ef41e3e058
3
+ metadata.gz: 993ad6c1ecaba76a41efbfe0aaf48c8142a552eb
4
+ data.tar.gz: 56606fffcfb1f59f1732acf1535d6a242544e8d5
5
5
  SHA512:
6
- metadata.gz: 101f073e802079eb982282da699bfc5d3a3f7d31c23005431d81101706c2c500d3010fa43c7610462e6fcdb08f7baf42320f012120bc4e915210ef20f7c5edb4
7
- data.tar.gz: 880e54fc0866728b84994d6fda7aeb1fd0711136e5fd3867fe985d9a2ad57ea556b778cd7bd0fcc178c22bfc1f53671d58b9a61d855f3455c2d626565d98b81f
6
+ metadata.gz: 180a90fe432e3166c5d446ea040c9517a48b44dc5943cb0accd501492b75dcf28c127fcb67bd0f5354966455958dcfb287ecd496910d15b30cba9aa210d3d69d
7
+ data.tar.gz: 3ba9d68b62b8cdb49c9c8b9db862b440446409a9f62e510f997b585bb075b07f555f749bd919b91eaae081af8f0dac342c291d8d9258a5e5ac87b3fae55fa34e
@@ -12,7 +12,7 @@ class Filtering::Base
12
12
  filter_by_plain_params unless plain_params.empty?
13
13
  filter_by_complex_params unless complex_params.empty?
14
14
 
15
- paginate if result.respond_to?(:page)
15
+ paginate if page.present? && result.respond_to?(:page)
16
16
  ordering if order.present?
17
17
  grouping if group.present?
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Filtering
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filtering
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaliy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler