mobility-ransack 0.1.0 → 0.1.1

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: 1dbe32e639522abd94240700245b21f05c4404d02ba180232d4b29244c37b5ec
4
- data.tar.gz: e765f0db6c2520582997dc9d508af9e133a9d99bbc481e030e496dd21d600fe9
3
+ metadata.gz: 3e1f7aa59365ce176d9a5baccd87f8091b1d5c23f4532b66c019cf4766b23e43
4
+ data.tar.gz: 81b3dc8e4294177dbdad6b2403057adfd41756c103e0e803369e7c4a62884140
5
5
  SHA512:
6
- metadata.gz: 1b2a55f29a6973ee06e99f4c479a035f60ccd339e415916ca6bd1695289642ccfa0f5812107b761741a1afd81d29bc00c8c9084bd8c29ce3a88922abf65ca277
7
- data.tar.gz: 6196722b6897c97cd982bdcccc2a0f4202177ba7a12605596254df2477859457814fc07e2b26f3021bcc643394ba4126a595898132e2bae32a0ea53208eecda4
6
+ metadata.gz: 6f7daffdd7c1f8bb740628ffdbdfe5f52322705afaf970d56a7a7cd56bd06b14673c4af4897c0080bc6d74867d69b8beb5a1b4cda00051d763b98a04e41bbebf
7
+ data.tar.gz: ae9f596d2d64ff45b5f7a3e562c04dd6ee6fc9e593fddd91f92cc1294384a355360d30d6e75089f22d0ee92ce42755c67706d528c57ec971d23f578e0c2e6f25
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 0.1
4
4
 
5
+ ### 0.1.1
6
+ - Use `super` in `Search#result` override
7
+ ([#1](https://github.com/shioyama/mobility-ransack/pull/1))
8
+
5
9
  ### 0.1.0
6
10
  - Loosen Ransack dependency to allow up to 2.1
7
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility-ransack (0.0.1)
4
+ mobility-ransack (0.1.0)
5
5
  mobility (~> 0.8.0)
6
6
  ransack (>= 1.8.0, < 2.1)
7
7
 
data/README.md CHANGED
@@ -16,7 +16,7 @@ Search on translated attributes with
16
16
  Just add the gem to your Gemfile:
17
17
 
18
18
  ```ruby
19
- gem 'mobility-ransack', '~> 0.1.0'
19
+ gem 'mobility-ransack', '~> 0.1.1'
20
20
  ```
21
21
 
22
22
  Now enable the `ransack` plugin in Mobility's configuration so that it can be
@@ -26,7 +26,7 @@ module Mobility
26
26
 
27
27
  class Search < ::Ransack::Search
28
28
  def result(opts = {})
29
- conditions.inject(@context.evaluate(self, opts)) do |relation, condition|
29
+ conditions.inject(super) do |relation, condition|
30
30
  predicate = condition.arel_predicate
31
31
  (condition.attributes.compact.flatten.map(&:name) & object.mobility_attributes).inject(relation) do |i18n_rel, attr|
32
32
  object.mobility_backend_class(attr).apply_scope(i18n_rel, predicate)
@@ -1,5 +1,5 @@
1
1
  module Mobility
2
2
  module Ransack
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobility-ransack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg