mincer 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mincer/processors/pg_search/processor.rb +1 -1
- data/lib/mincer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e788eed2040b91c303c0eb90c0edefb99b3d37
|
4
|
+
data.tar.gz: b24f0318b5a6510fd208189f66d6ae3ae33b9383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c87929d34fbc3b535d666be7786b7bc8e19ae393c1f295b7a1d973bfe9257eb4433dd1687601d75844bd7eb8938a78faee0d1e15d5e8fe5506270b93e112c772
|
7
|
+
data.tar.gz: 1ea2edbcef8c41dae02301b60ece7b33480a4217f13dab58ef5680ab12f26ca94efb4b3b69af5ae616c735aff7c95f1aad6a4c3e01555729577b90be60507c7e
|
@@ -20,7 +20,7 @@ module Mincer
|
|
20
20
|
def apply_pg_search(relation, args)
|
21
21
|
rel = relation.where(conditions(args))
|
22
22
|
rank = rank(args)
|
23
|
-
if rank.blank?
|
23
|
+
if rank.blank? || (@mincer.respond_to?(:skip_order_by_rank) && @mincer.skip_order_by_rank)
|
24
24
|
rel
|
25
25
|
elsif @mincer.default_sorting
|
26
26
|
rel.reorder(rank)
|
data/lib/mincer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mincer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Krasinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.5.1
|
199
|
+
rubygems_version: 2.4.5.1
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: ActiveRecord::Relation wrapper for pagination, order, json, search, cache_digest
|