cancancan-system 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +2 -2
- data/lib/cancancan-system/version.rb +7 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aacda0bee6c9b4ee10ae3c96216d994f26ba03eb603c137751a1cf8bedeacdb0
|
4
|
+
data.tar.gz: 3256c56f33c7caeb179d7aee6e4f5e6b85856ac6b3e17d728223becda81d1fcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e2c02a9315d7084daf7ee263912b6927415f59e131a0780b180c528e3a059bedb812376e44bfa951f48e38f4de5487b9c8970dbbd2c16d68c19bc8234d32983
|
7
|
+
data.tar.gz: 8a44b6a52efc878a8e01893dfb5c40f1205b5c130e982eea01163af881d32f4f21965931b276eac02547cf655ff08e4cbfcc1e2ff9bddb14fd207f3a99e1f5ff
|
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,16 @@
|
|
4
4
|
|
5
5
|
* nothing yet
|
6
6
|
|
7
|
+
### 1.1.2 - 2018/05/24
|
8
|
+
|
9
|
+
* bugfixes
|
10
|
+
* update `acts_as_belongable` dependency
|
11
|
+
|
7
12
|
### 1.1.0 - 2018/01/21
|
8
13
|
|
9
14
|
* enhancements
|
10
15
|
* allow `column` option to be set to `nil` to use the `id` attribute
|
11
|
-
|
16
|
+
|
12
17
|
### 1.0.1 - 2018/01/21
|
13
18
|
|
14
19
|
* bugfixes
|
data/README.md
CHANGED
@@ -228,7 +228,7 @@ You want the posts of an organization to be accessible for its members. It doesn
|
|
228
228
|
```ruby
|
229
229
|
def initialize user
|
230
230
|
abilities Post, user do
|
231
|
-
|
231
|
+
membership_abilities 'Organization', Post, user, scope: :membership
|
232
232
|
end
|
233
233
|
end
|
234
234
|
```
|
@@ -247,7 +247,7 @@ end
|
|
247
247
|
```ruby
|
248
248
|
def initialize user
|
249
249
|
abilities Post, user do
|
250
|
-
|
250
|
+
membership_abilities 'Organization', Post, user, scope: :membership, column: 'object', polymorphic: true
|
251
251
|
end
|
252
252
|
end
|
253
253
|
```
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module CanCanCan
|
2
|
-
module System
|
3
|
-
|
4
|
-
VERSION = '1.1.
|
5
|
-
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module CanCanCan
|
2
|
+
module System
|
3
|
+
|
4
|
+
VERSION = '1.1.2'
|
5
|
+
|
6
|
+
end
|
7
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cancancan-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|