mongoid_criteria_filter 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b93d69eaf85c06a005218e84706157870302fb57
|
4
|
+
data.tar.gz: 5dbf65c1e13a94e6af56ec154737e67fcc98b0fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e69c129859f22007452b9857cb739977882e97b4a207cbade4c1a62ad0600b7719fb0bcfd4695966bdc2b5851da56a42f3d74f6de5b142e0e1a5c01d72ed87ca
|
7
|
+
data.tar.gz: b5eab98965fbd20146ea36e3ed7f403230259513d50c713d9310cb005318bacf0f2af7b98bd689ff18a9a6e492a13c402cd97d2583b450a5807e843e048448bf
|
@@ -8,14 +8,14 @@ module Mongoid
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def each
|
11
|
-
|
11
|
+
apply_filter_callbacks(super(){}).each do |doc|
|
12
12
|
yield(doc) if block_given?
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
|
-
def
|
18
|
+
def apply_filter_callbacks(items)
|
19
19
|
filter_callbacks.each do |filter_callback|
|
20
20
|
items = filter_callback.call items
|
21
21
|
end unless has_additional_order?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_criteria_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Melanitskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- lib/mongoid_criteria_filter.rb
|
49
49
|
- lib/mongoid_criteria_filter/criteria.rb
|
50
50
|
- lib/mongoid_criteria_filter/origin_optional.rb
|
51
|
+
- lib/mongoid_criteria_filter/version.rb
|
51
52
|
homepage: https://github.com/Rademade/mongoid_criteria_filter
|
52
53
|
licenses:
|
53
54
|
- MIT
|