avo 3.20.3 → 3.21.0
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 +4 -4
- data/Gemfile.lock +13 -13
- data/app/assets/builds/avo.base.css +1 -1181
- data/app/assets/builds/avo.base.js +149 -113
- data/app/assets/builds/avo.base.js.map +3 -3
- data/app/avo/base_resource.rb +0 -2
- data/lib/avo/resources/resource_manager.rb +5 -1
- data/lib/avo/version.rb +1 -1
- data/public/avo-assets/avo.base.css +1 -860
- metadata +2 -2
data/app/avo/base_resource.rb
CHANGED
@@ -34,6 +34,11 @@ module Avo
|
|
34
34
|
# "FishResource",
|
35
35
|
# ]
|
36
36
|
def fetch_resources
|
37
|
+
# Mark the BaseResource as abstract so it doesn't get loaded by the resource manager
|
38
|
+
# This is made here instead of in the BaseResource class because BaseResource class can be overridden
|
39
|
+
# And we don't want to force the developer that overrides this class to add the abstract resource flag to the overridden class.
|
40
|
+
Avo::BaseResource.abstract_resource!
|
41
|
+
|
37
42
|
if Avo.configuration.resources.present?
|
38
43
|
load_configured_resources
|
39
44
|
else
|
@@ -41,7 +46,6 @@ module Avo
|
|
41
46
|
end
|
42
47
|
|
43
48
|
# All descendants from Avo::Resources::Base except the internal abstract ones
|
44
|
-
|
45
49
|
Base.descendants.reject { _1.is_abstract? }
|
46
50
|
end
|
47
51
|
|
data/lib/avo/version.rb
CHANGED