settings_hub 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73c451e65d050963812a29c8be8c77a98b0486469d8ac6d5340fb56f4efa6456
|
|
4
|
+
data.tar.gz: 74038ba04e7228647ae1da109b00b6de3d601e8ecd3e9780512b4c2a297be366
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1afe447071e4cb8377109ceaa267e8c94b40c46ef6da9b0d3481c827e3cb5fd75e940797cd589377830149b49f9c53be04419f962faf98ec8573acaf348290df
|
|
7
|
+
data.tar.gz: 4678adb41ce2746ffef96b1630e4bf250a1a38ba1acaeb70b76ab97dd7e5fd3fd7795d54902e6ed5fcdfd28dcfa4ec2152e27e6bb40eb7223bcd4a174120d182
|
|
@@ -101,11 +101,11 @@ front of a person:
|
|
|
101
101
|
The third runs only once the app declares what it recognises:
|
|
102
102
|
|
|
103
103
|
```ruby
|
|
104
|
-
SettingsHub.capabilities = -> {
|
|
104
|
+
SettingsHub.capabilities = -> { AccountAuthz.capabilities }
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
An app that declares nothing gets no capability check, which is what lets settings_hub
|
|
108
|
-
be installed without
|
|
108
|
+
be installed without account_authz.
|
|
109
109
|
|
|
110
110
|
### The object a section runs
|
|
111
111
|
|
|
@@ -201,10 +201,10 @@ own address, handed to the partial in `submit_urls`:
|
|
|
201
201
|
|
|
202
202
|
```ruby
|
|
203
203
|
SettingsHub.section :team, area: :team, title: "Team", capability: :manage_team,
|
|
204
|
-
renders: "
|
|
204
|
+
renders: "account_authz/members/team",
|
|
205
205
|
runs: {
|
|
206
|
-
invite: "
|
|
207
|
-
remove: "
|
|
206
|
+
invite: "AccountAuthz::Invite",
|
|
207
|
+
remove: "AccountAuthz::RemoveMember"
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
data/lib/settings_hub/version.rb
CHANGED
|
@@ -166,10 +166,10 @@ added to or changed in an app that already has settings_hub mounted.
|
|
|
166
166
|
|
|
167
167
|
```ruby
|
|
168
168
|
SettingsHub.section :team, area: :team, title: "Team", capability: :manage_team,
|
|
169
|
-
renders: "
|
|
169
|
+
renders: "account_authz/members/team",
|
|
170
170
|
runs: {
|
|
171
|
-
invite: "
|
|
172
|
-
remove: "
|
|
171
|
+
invite: "AccountAuthz::Invite",
|
|
172
|
+
remove: "AccountAuthz::RemoveMember"
|
|
173
173
|
}
|
|
174
174
|
```
|
|
175
175
|
|
|
@@ -92,7 +92,7 @@ building one.
|
|
|
92
92
|
in `config/initializers/settings_hub.rb`, creating that file if the app has none:
|
|
93
93
|
|
|
94
94
|
```ruby
|
|
95
|
-
SettingsHub.capabilities = -> {
|
|
95
|
+
SettingsHub.capabilities = -> { AccountAuthz.capabilities }
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
It takes a list or something answering `call` that returns one; use the
|