faceted_search 3.5.6 → 3.5.7

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: 109687180e0ee8bc369a74c9884430021f167fd43694b7ee43a4cdd486846af6
4
- data.tar.gz: ec7bd149ecbdb47adb470f7b88da290f59247544034de5fb1184104426c95aac
3
+ metadata.gz: 80006422a406840a486d9c8f5a50e1a2425057b285af095e95ee359021a1c1d7
4
+ data.tar.gz: 578682f035d0315fe84a4950e78879eb0f9654b5d9ff2582b091672473c517ff
5
5
  SHA512:
6
- metadata.gz: 0a1cd9a1f7ad2ce69a778b7cef0c826ad97b277b6700f5973e5a7479c23c9a35d11fd64938bf1b21a389233520c84b974478ac33ae3c2a52cb5287fdde35dc0b
7
- data.tar.gz: 7a9f15c607f02534ea00ddd6ad59122af8a765ba7cf4aa16459bfe207b6d07ab982250f3a0d23ebf1d3a765073b150a4aa2d26b2530cf3d4ed0206683d7060f1
6
+ metadata.gz: ee0870c176285f42f78bb0c244a52783dcc54733b1d0ad1fc5a3db88b069b72d0222bc2c87b6873fd1b503f5d5b2f58f6782c905963d38ece704ded9b5b21c0d
7
+ data.tar.gz: f0f3ab3e4019737a2d48a364f74b82bc449a1d8d26f94972d3830dcf8334b61b2d473026832cec7d6247ac8bf88eb59e68f0e03237c6e30e54d88a091d199b5b
@@ -3,9 +3,12 @@ module FacetedSearch
3
3
 
4
4
  def source
5
5
  @source ||= begin
6
- next @options[:source] if @options[:source].present?
7
- results = params_array.blank? ? facets.results : facets.results_except(@name)
8
- results.send(:all).pluck(name).compact.map(&:year).uniq.sort
6
+ if @options[:source].present?
7
+ @options[:source]
8
+ else
9
+ results = params_array.blank? ? facets.results : facets.results_except(@name)
10
+ results.send(:all).pluck(name).compact.map(&:year).uniq.sort
11
+ end
9
12
  end
10
13
  end
11
14
 
@@ -3,9 +3,12 @@ module FacetedSearch
3
3
 
4
4
  def source
5
5
  @source ||= begin
6
- next @options[:source] if @options[:source].present?
7
- results = params_array.compact.blank? ? facets.results : facets.results_except(@name)
8
- results.send(:all).where("#{field} IS NOT NULL")
6
+ if @options[:source].present?
7
+ @options[:source]
8
+ else
9
+ results = params_array.compact.blank? ? facets.results : facets.results_except(@name)
10
+ results.send(:all).where("#{field} IS NOT NULL")
11
+ end
9
12
  end
10
13
  @options[:source].where("#{field} IS NOT NULL")
11
14
  end
@@ -1,3 +1,3 @@
1
1
  module FacetedSearch
2
- VERSION = '3.5.6'
2
+ VERSION = '3.5.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceted_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.6
4
+ version: 3.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy