filterer 1.0.0.beta.3 → 1.0.0.beta.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filterer/base.rb +1 -1
- data/lib/filterer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3efc0fb25168f9f7fa99430550bbd7e39a05d688
|
4
|
+
data.tar.gz: 8ec865378c61652d08186102c4a406e322387646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21643251655d6df18e54566e47f7c48941e725c99d7f95374a4181304f8d65e46d4461547018a117d1212af0088eb43add03237be5f8369a7f45f9ba16cbf2df
|
7
|
+
data.tar.gz: c128279343a9807477efab1d5e5ed27224114405e2ba2bfed3bd55262314271f79f3d16bef2decd4190e0331aaab49762df092a1e8a60c66cdf37a2b119056e8
|
data/lib/filterer/base.rb
CHANGED
@@ -199,7 +199,7 @@ module Filterer
|
|
199
199
|
def sort_proc_to_string(opt)
|
200
200
|
sort_key = opt[:key]
|
201
201
|
matches = sort_key.is_a?(Regexp) && params[:sort].match(sort_key)
|
202
|
-
opt[:string_or_proc]
|
202
|
+
instance_exec matches, &opt[:string_or_proc]
|
203
203
|
end
|
204
204
|
|
205
205
|
def default_sort_option
|
data/lib/filterer/version.rb
CHANGED