Sha256: 8c9afd19e5c438882dc53c868be431d4cadc5b34cfca643e7cb3f80803b4a178
Contents?: true
Size: 888 Bytes
Versions: 10
Compression:
Stored size: 888 Bytes
Contents
module Openseadragon class Engine < ::Rails::Engine isolate_namespace Openseadragon config.before_configuration do # see https://github.com/fxn/zeitwerk#for_gem # openseadragon_rails puts a generator into LOCAL APP lib/generators, so tell # zeitwerk to ignore the whole directory? If we're using a recent # enough version of Rails to have zeitwerk config # # See: https://github.com/cbeer/engine_cart/issues/117 if Rails.try(:autoloaders).try(:main).respond_to?(:ignore) Rails.autoloaders.main.ignore(Rails.root.join('lib/generators')) end end initializer "openseadragon.importmap", before: "importmap" do |app| app.config.assets.paths << Engine.root.join("app/javascript") app.config.importmap.paths << Engine.root.join("config/importmap.rb") if app.config.respond_to?(:importmap) end end end
Version data entries
10 entries across 10 versions & 1 rubygems