class Importmap::Reloader
Public Instance Methods
Source
# File lib/importmap/reloader.rb, line 4 def reload! import_map_paths.each { |path| Rails.application.importmap.draw(path) } end
Private Instance Methods
Source
# File lib/importmap/reloader.rb, line 13 def import_map_paths config.importmap.paths end
Source
# File lib/importmap/reloader.rb, line 9 def updater @updater ||= config.file_watcher.new(import_map_paths) { reload! } end