mongoid_enumerable 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mongoid_enumerable.rb +4 -4
- data/lib/mongoid_enumerable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec2532e40c5edfc29029fe022a8feb7bb597454221962243aa10400bc34afb4
|
4
|
+
data.tar.gz: 44bae9e6eb17d5cc1382e780728e4b9c71078212781aa103bb6dcbd804c164d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cddccbd3dccf073ac03e5a803414a42e174cddf6c1e8009c38e4138909d4a7ff8eb3d0d8102c12edee123cd2a7a0ef44102d1f78f5bb2b8ac99397cfb0349481
|
7
|
+
data.tar.gz: 45caf06aa1ab7d4ef5ae487292ea55dc069c805f1c7f16a43b69acaa23f448add7ca6bae780b1ee4696228ef963a79c516249e2668835aa0e515357033ca1648
|
data/Gemfile.lock
CHANGED
data/lib/mongoid_enumerable.rb
CHANGED
@@ -23,13 +23,13 @@ module MongoidEnumerable
|
|
23
23
|
send(field_name) == value
|
24
24
|
end
|
25
25
|
|
26
|
-
base.
|
26
|
+
base.define_singleton_method(method_name) do
|
27
27
|
base.where(field_name => value)
|
28
28
|
end
|
29
|
+
end
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
end
|
31
|
+
base.define_singleton_method("all_#{field_name}") do
|
32
|
+
values
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_enumerable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Lise
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|