effective_resources 0.8.23 → 0.8.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_resources_helper.rb +2 -2
- data/lib/effective_resources/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: fe780133bea4d0a19c59eae5849120895546bcba
|
4
|
+
data.tar.gz: d06909451e926a3fb34726586aae9079fa349cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a0fc36d0ddf895a8634541f87ed7542a1ac08d3610f2fe96802794847f5cc453146db51a2264601f166c81b94697dab16aa9ccd1a6b721d34892171fa8c7c2
|
7
|
+
data.tar.gz: a493b7ecf29879123e5270a74f553db2fd7e03f751e757f9e040a33df8f14f944f0e2e37992c93820339995cc07adb159051612f3a7691a2f36f45a39f0f3f24
|
@@ -55,14 +55,14 @@ module EffectiveResourcesHelper
|
|
55
55
|
['effective/resource/actions', partial.to_s].join('_')
|
56
56
|
else
|
57
57
|
'effective/resource/actions'
|
58
|
-
end
|
58
|
+
end + '.html'.freeze
|
59
59
|
|
60
60
|
actions = effective_resource.resource_actions - atts.reject { |_, v| v }.keys + atts.select { |_, v| v }.keys
|
61
61
|
actions = actions.uniq.select { |action| EffectiveResources.authorized?(controller, action, resource) }
|
62
62
|
|
63
63
|
locals = { resource: resource, effective_resource: effective_resource, namespace: namespace, actions: actions }
|
64
64
|
|
65
|
-
block_given? ? render(partial, locals) { yield } : render(partial, locals)
|
65
|
+
block_given? ? render((partial), locals) { yield } : render((partial), locals)
|
66
66
|
end
|
67
67
|
|
68
68
|
# When called from /admin/things/new.html.haml this will render 'admin/things/form', or 'things/form', or 'thing/form'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|