lib/avo/app.rb in avo-2.17.0 vs lib/avo/app.rb in avo-2.17.1.pre.1.zeitwerk.eager.load.dir

- old
+ new

@@ -15,9 +15,15 @@ class_attribute :params, default: {} class_attribute :translation_enabled, default: false class_attribute :error_messages class << self + def eager_load_resources + Rails.autoloaders.each do |loader| + loader.eager_load_dir(Rails.root.join("app", "avo", "resources").to_s) + end + end + def boot init_fields if Rails.cache.instance_of?(ActiveSupport::Cache::NullStore) self.cache_store ||= ActiveSupport::Cache::MemoryStore.new