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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75beab8a1ff5a1cb3050b90da354ff7f35015a2c
4
- data.tar.gz: f21249f540044374eab84600f51d4a3aeb93fd55
3
+ metadata.gz: 99e788eed2040b91c303c0eb90c0edefb99b3d37
4
+ data.tar.gz: b24f0318b5a6510fd208189f66d6ae3ae33b9383
5
5
  SHA512:
6
- metadata.gz: fb1fa9dd8f0feb642d7d670c6269de05429357be671ad5fef8f7af9af56d54912372f1caa917538166119ded1a030319553d49f3611985480d8e54198d80e13f
7
- data.tar.gz: d4693f19a4c5718d2c3f71dfa8f8f686a7cafa463f049fc0a6355a4ecdeef0eeb37bf484e330bfd50b38c0ca53271c2646bb1a82ade179cf634f542ea31878c7
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)
@@ -1,7 +1,7 @@
1
1
  module Mincer
2
2
 
3
3
  def self.version
4
- Gem::Version.new '0.2.11'
4
+ Gem::Version.new '0.2.12'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
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.11
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-02-09 00:00:00.000000000 Z
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