Sha256: 97ae8f87463f3545f79f2411ccc38491edb8da16437c46d95a04c1d0c533020e
Contents?: true
Size: 412 Bytes
Versions: 5
Compression:
Stored size: 412 Bytes
Contents
class Importmap::Reloader delegate :execute_if_updated, :execute, :updated?, to: :updater def reload! import_map_paths.each { |path| load path } end private def updater @updater ||= config.file_watcher.new(import_map_paths) { reload! } end def import_map_paths config.paths["config/importmap.rb"].existent end def config Rails.application.config end end
Version data entries
5 entries across 5 versions & 1 rubygems