lib/isomorfeus-policy.rb in isomorfeus-policy-2.5.5 vs lib/isomorfeus-policy.rb in isomorfeus-policy-22.9.0.rc1

- old
+ new

@@ -1,19 +1,13 @@ -require 'isomorfeus-preact' +require 'isomorfeus-transport' require 'isomorfeus/policy/config' -require 'lucid_props' +require 'lucid_policy' if RUBY_ENGINE == 'opal' - Isomorfeus.zeitwerk.push_dir('isomorfeus_policy') - require_tree 'isomorfeus_policy', autoload: true Isomorfeus.zeitwerk.push_dir('policies') else - require 'isomorfeus_policy/lucid_policy/exception' - require 'isomorfeus_policy/lucid_policy/helper' - require 'isomorfeus_policy/lucid_policy/mixin' - require 'isomorfeus_policy/lucid_policy/base' require 'iso_opal' - Opal.append_path(__dir__.untaint) unless IsoOpal.paths_include?(__dir__.untaint) + path = File.expand_path(File.join('app', 'policies')) Isomorfeus.zeitwerk.push_dir(path) if Dir.exist?(path) end