instance method
watchable_args
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v3.2.22.5Signature
watchable_args()
Returns an array of file paths appended with a hash of directories-extensions suitable for ActiveSupport::FileUpdateChecker API.
Source
# File railties/lib/rails/application.rb, line 117
def watchable_args
files = []
files.concat config.watchable_files
dirs = {}
dirs.merge! config.watchable_dirs
ActiveSupport::Dependencies.autoload_paths.each do |path|
dirs[path.to_s] = [:rb]
end
[files, dirs]
end
Defined in railties/lib/rails/application.rb line 117
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application