avo 4.0.0.beta.47 → 4.0.0.beta.48
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: e6a1cad34545b8a56a953bbd1b01c8dc7ebbe93c6c5b9060219a8694188059f0
|
|
4
|
+
data.tar.gz: 7afe5561111b169e1398ed8f4c3c36bcf0f4aad7ca7fcecb7096b2a4ff656f03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf19d2b64536b96b623afbb3a2b4718c21b7cc5d0a53116732e15c344093be36e9a6898899d244c5e83186691a36559f49f3cb4a19731908508e224f771bc27f
|
|
7
|
+
data.tar.gz: 83358c02156416914aba2afad7e255aafc0155570b597e0e303e9c88310661c93e2a35cf07470c04188b0e219cc8f1cb9803a6a884c6061dd1bb51c6a3f56896
|
data/Gemfile.lock
CHANGED
|
@@ -75,9 +75,9 @@ class Avo::ActionsComponent < Avo::BaseComponent
|
|
|
75
75
|
render Avo::DividerComponent.new(action.label)
|
|
76
76
|
when Avo::BaseAction
|
|
77
77
|
render_action_link(action)
|
|
78
|
-
when defined?(Avo::
|
|
78
|
+
when defined?(Avo::CustomControls::Resources::Controls::Action) && Avo::CustomControls::Resources::Controls::Action
|
|
79
79
|
render_action_link(action.action, icon: action.icon)
|
|
80
|
-
when defined?(Avo::
|
|
80
|
+
when defined?(Avo::CustomControls::Resources::Controls::LinkTo) && Avo::CustomControls::Resources::Controls::LinkTo
|
|
81
81
|
link_to action.args[:path],
|
|
82
82
|
class: action.args.delete(:class),
|
|
83
83
|
**action.args.except(:path, :label, :icon) do
|
|
@@ -143,7 +143,7 @@ class Avo::Views::ResourceIndexComponent < Avo::ResourceComponent
|
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
def scopes_list
|
|
146
|
-
Avo::
|
|
146
|
+
Avo::ResourceScopes::Scopes::ListComponent.new(
|
|
147
147
|
scopes: @scopes,
|
|
148
148
|
resource: @resource,
|
|
149
149
|
turbo_frame: @turbo_frame,
|
|
@@ -155,7 +155,7 @@ class Avo::Views::ResourceIndexComponent < Avo::ResourceComponent
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
def can_render_scopes?
|
|
158
|
-
|
|
158
|
+
Avo.plugin_manager.installed?("avo-resource_scopes") && @scopes.present?
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
def back_path
|
data/lib/avo/plugin_dsl.rb
CHANGED
data/lib/avo/version.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class Avo::Scopes::<%= class_name.camelize %> < Avo::
|
|
1
|
+
class Avo::Scopes::<%= class_name.camelize %> < Avo::ResourceScopes::Scopes::BaseScope
|
|
2
2
|
self.name = "<%= name.underscore.humanize %>"
|
|
3
3
|
# self.description = "<%= name.underscore.humanize %> description."
|
|
4
4
|
self.scope = -> { query.all }
|