require 'isomorfeus-transport' require 'isomorfeus/policy/config' require 'lucid_policy' if RUBY_ENGINE == 'opal' Isomorfeus.zeitwerk.push_dir('policies') else require 'iso_opal' Opal.append_path(__dir__) unless IsoOpal.paths_include?(__dir__) path = File.expand_path(File.join('app', 'policies')) Isomorfeus.zeitwerk.push_dir(path) if Dir.exist?(path) end