mongoid_ability 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid_ability/lock.rb +1 -1
- data/lib/mongoid_ability/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43d40158fbfa09bdf0f359c67b2479fb2854018e
|
4
|
+
data.tar.gz: 5991679a87775917e3f9823048a4b6c56f13fc1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c991cc35b5c519d08cfc1bb49b8df8d41648a55d3cbb13f82dcea1691fcbc500218374cc6d78609d07c69578cd4d1ba6d66fbbc4c16ed64b6eb59965b169424a
|
7
|
+
data.tar.gz: c983cf65e6e9d8e3276e6833173e866e857e1f7745426242d4285178118f6252cda3466ce6779540c91a65787eb04999f5bedb0a389217ce6466d4aef9b9854d
|
data/lib/mongoid_ability/lock.rb
CHANGED
@@ -9,7 +9,7 @@ module MongoidAbility
|
|
9
9
|
field :outcome, type: Boolean, default: false
|
10
10
|
field :options, type: Hash, default: {}
|
11
11
|
|
12
|
-
belongs_to :subject, polymorphic: true, touch: true
|
12
|
+
belongs_to :subject, polymorphic: true, touch: true, optional: true
|
13
13
|
|
14
14
|
# TODO: validate that action is defined on subject or its superclasses
|
15
15
|
validates :action, presence: true, uniqueness: { scope: [:subject_type, :subject_id, :outcome] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_ability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|