instance method
add
Ruby on Rails 6.1.7.10
Since v3.1.12Signature
add(path, options = {})
No documentation comment.
Parameters
-
pathreq -
optionsopt = {}
Source
# File railties/lib/rails/paths.rb, line 61
def add(path, options = {})
with = Array(options.fetch(:with, path))
@root[path] = Path.new(self, path, with, options)
end
Defined in railties/lib/rails/paths.rb line 61
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Root