mongoid_enumerable 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +2 -2
- data/lib/mongoid_enumerable.rb +1 -1
- 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: 2cf4495ef6b58e4e41f79f9450c1a4dbd45fe9de7869724cc33a9ccedf7b8514
|
4
|
+
data.tar.gz: 912fa04c9f108b4676948e225e6e6844794111665b2e319ab461800b8deea996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ab05734a9c41d9cb27444119ef871229f02dc3b2c8259f26943fff7403745f541ccf51dea18e65f9645e64272bcf23eebce07ed149d40a0db7c3d794e28077
|
7
|
+
data.tar.gz: 2743a8df07a9e76c226f55a9cc5ead6c9d5e5f034022ac8bef7d7e447ae9e2a42f18ea8bf8aaaff0b48cf323418256971c764ad4baa52b5e431fbcefa5d8a184
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/mongoid_enumerable.rb
CHANGED
@@ -62,7 +62,7 @@ module MongoidEnumerable
|
|
62
62
|
send(field_name) == value
|
63
63
|
end
|
64
64
|
|
65
|
-
model.scope
|
65
|
+
model.scope method_name, -> { where(field_name => value) }
|
66
66
|
end
|
67
67
|
|
68
68
|
def run_callback(model:, callback_method_name:, value_before:, value_after:)
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Lise
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|