faceted_search 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53d79c318630c1c101198180be241e0046df7b4c13fd1032e6f96240c3c76d0c
4
- data.tar.gz: 8f84a9fbcb5aba92c5492996919a6ffe7e18523863a7ce64d74648467678c358
3
+ metadata.gz: fe592fdf97691ed7a84615276e1bcbefc462c4909ec022ac3cf9ac91e573cb29
4
+ data.tar.gz: 016676f7aecb78314f4b35b4db6878594ed0fe10310e298587e10459482571f9
5
5
  SHA512:
6
- metadata.gz: 1046312ad4a1570e152244c255fe295cdfff3872153fee7a59d2b219054a8d4cc36df399a7c9b1517155a75222a41ebe81436de177383aab20a342f66ac90982
7
- data.tar.gz: 39ea506b9e93ad80dc1da2822f7dac88c270bcc0885388a78f05fc82b00e0062cb13639683a372df98728f0098f955672409110434bd3b52dfa8cda3c06e5f83
6
+ metadata.gz: 03d95585dc7d993aad9c3c86bf145a9bfb202c36f22f2016b426f78111ff28d8c23d01bbf97b58e2d03eb3ba651fe78dd68cf0184347134f9f58d3ec244455cc
7
+ data.tar.gz: 558617b904a86f464411a4a7c5fa376d3289e330852359e7338495ce54472103c85d725a2852ff4acad98086e282699ba839f816349138b040b7a0e35f0cca41
@@ -29,7 +29,7 @@ module FacetedSearch
29
29
  # This is a regular SQL inner join.
30
30
  def values
31
31
  joined_table = @facets.model_table_name.to_sym
32
- source.all.joins(joined_table).where(joined_table => { id: @facets.results }).distinct
32
+ source.all.joins(joined_table).where(joined_table => { id: @facets.model }).distinct
33
33
  end
34
34
 
35
35
  protected
@@ -1,6 +1,6 @@
1
1
  module FacetedSearch
2
2
  class Facets
3
- attr_reader :list, :params
3
+ attr_reader :list, :params, :model
4
4
 
5
5
  def initialize(params)
6
6
  if params.is_a? ActionController::Parameters
@@ -1,3 +1,3 @@
1
1
  module FacetedSearch
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy