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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4227953f177f462e8511b587a962c05b92a0d18c
4
- data.tar.gz: b0d2dff3cdfc73ebee23efd5b8734048920ef353
3
+ metadata.gz: 43d40158fbfa09bdf0f359c67b2479fb2854018e
4
+ data.tar.gz: 5991679a87775917e3f9823048a4b6c56f13fc1c
5
5
  SHA512:
6
- metadata.gz: de57dc7d0d9865abe6bec03489f9b1b6184b0271dc4f4c6f1775068880f31583660bb89eb6fee22cf9affc79fca21b5a17bb792b462c7077dbc96fa62abe3264
7
- data.tar.gz: b3fd74da27320617c52fead3fd097ce4d05e0f7ad7e0e382c15f91d5d3eaf3507fb10aa873fcf819e3f31d92f10884aba6352c99a7d7b92d9873089f44cd09c3
6
+ metadata.gz: c991cc35b5c519d08cfc1bb49b8df8d41648a55d3cbb13f82dcea1691fcbc500218374cc6d78609d07c69578cd4d1ba6d66fbbc4c16ed64b6eb59965b169424a
7
+ data.tar.gz: c983cf65e6e9d8e3276e6833173e866e857e1f7745426242d4285178118f6252cda3466ce6779540c91a65787eb04999f5bedb0a389217ce6466d4aef9b9854d
@@ -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] }
@@ -1,3 +1,3 @@
1
1
  module MongoidAbility
2
- VERSION = '0.3.11'.freeze
2
+ VERSION = '0.3.12'.freeze
3
3
  end
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.11
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-24 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan