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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2351c882edaa8001b94935acbca780edc8ab05e7
4
- data.tar.gz: 75f007247f863e9b558cea41b4e43cff121e1e18
3
+ metadata.gz: fe780133bea4d0a19c59eae5849120895546bcba
4
+ data.tar.gz: d06909451e926a3fb34726586aae9079fa349cd1
5
5
  SHA512:
6
- metadata.gz: 63101f42de0d3bbd16e50a7b62620021e5894bad5872cd749764b44ba948c9bcee859e5a8e0cacce49486d82b950d6aea57aff2223f0c72e4ffe61823d268d6a
7
- data.tar.gz: 50d7e165820db6cdd024f375c1b7a87549e6dd327a06b937ff625bda4fdc4fc4f34dca9d6e51619150fa93348609c922af2fd11639fc2a1bf40556081352634e
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'
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '0.8.23'.freeze
2
+ VERSION = '0.8.24'.freeze
3
3
  end
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.23
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-06-27 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails