Method: Rails::Application#watchable_args

Defined in:
railties/lib/rails/application.rb

#watchable_argsObject

Returns an array of file paths appended with a hash of directories-extensions suitable for ActiveSupport::FileUpdateChecker API.



421
422
423
424
425
426
427
428
429
# File 'railties/lib/rails/application.rb', line 421

def watchable_args # :nodoc:
  files, dirs = config.watchable_files.dup, config.watchable_dirs.dup

  Rails.autoloaders.main.dirs.each do |path|
    dirs[path] = [:rb]
  end

  [files, dirs]
end