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.
@@ -1,7 +1,5 @@
1
1
  module Avo
2
2
  class BaseResource < Avo::Resources::Base
3
- abstract_resource!
4
-
5
3
  # Users can override this class to add custom methods for all resources.
6
4
  end
7
5
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.20.3" unless const_defined?(:VERSION)
2
+ VERSION = "3.21.0" unless const_defined?(:VERSION)
3
3
  end