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 +4 -4
- data/lib/filtering/base.rb +1 -1
- data/lib/filtering/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993ad6c1ecaba76a41efbfe0aaf48c8142a552eb
|
4
|
+
data.tar.gz: 56606fffcfb1f59f1732acf1535d6a242544e8d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 180a90fe432e3166c5d446ea040c9517a48b44dc5943cb0accd501492b75dcf28c127fcb67bd0f5354966455958dcfb287ecd496910d15b30cba9aa210d3d69d
|
7
|
+
data.tar.gz: 3ba9d68b62b8cdb49c9c8b9db862b440446409a9f62e510f997b585bb075b07f555f749bd919b91eaae081af8f0dac342c291d8d9258a5e5ac87b3fae55fa34e
|
data/lib/filtering/base.rb
CHANGED
@@ -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
|
|
data/lib/filtering/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|