effective_resources 2.5.2 → 2.5.4
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: b61642f0df33f0c4ae152ce94fe4e8b455c05ef012d156bcfd3cfa49b6f99f2c
|
|
4
|
+
data.tar.gz: 1c2333209641f7c555322808ed7f5980cd02620d206cd6538072a863494f11de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0baedf6b1cfe7d25ad4f551cfc710b64b5253154dfed6a7b17d2d745cded561e2d1f516f973bbd9c165ace4747a7c48806e7e70dbfd4b13d7ede919155655500
|
|
7
|
+
data.tar.gz: 97b02b7a8da7a7f9e81758cdffb3cc2f42d84a99aeb2840e69d05c8e80973b4d5170edabcb85b21a902c1be8a07464c65aca463304746884461e61fec6c9e980
|
|
@@ -37,7 +37,7 @@ module EffectiveResourcesHelper
|
|
|
37
37
|
|
|
38
38
|
def render_resource_buttons(resource, atts = {}, &block)
|
|
39
39
|
effective_resource = find_effective_resource
|
|
40
|
-
actions = controller.try(:buttons) ||
|
|
40
|
+
actions = controller.try(:buttons) || effective_resource.buttons()
|
|
41
41
|
|
|
42
42
|
actions = if resource.kind_of?(Class)
|
|
43
43
|
actions.select { |_, v| effective_resource.collection_get_actions.include?(v[:action]) }
|
|
@@ -278,7 +278,7 @@ module EffectiveResourcesHelper
|
|
|
278
278
|
link_to('Edit', wizard_path(step), title: "Edit #{title}")
|
|
279
279
|
end
|
|
280
280
|
|
|
281
|
-
content_tag(:div, class: 'card') do
|
|
281
|
+
content_tag(:div, class: 'card mb-4') do
|
|
282
282
|
content_tag(:div, class: 'card-body') do
|
|
283
283
|
content_tag(:div, class: 'row') do
|
|
284
284
|
content_tag(:div, class: 'col-sm') do
|
|
@@ -40,7 +40,7 @@ module EffectiveResourcesPrivateHelper
|
|
|
40
40
|
if opts.key?('data-confirm') && opts['data-confirm'].to_s.include?('@resource')
|
|
41
41
|
confirm = opts['data-confirm']
|
|
42
42
|
|
|
43
|
-
confirm.gsub
|
|
43
|
+
confirm = confirm.gsub(REPLACE_RESOURCE_METHODS) do |value|
|
|
44
44
|
method = value.to_s.split('.').last
|
|
45
45
|
resource.public_send(method)
|
|
46
46
|
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: 2.5.
|
|
4
|
+
version: 2.5.4
|
|
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: 2023-03-
|
|
11
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|