instance method
add
Ruby on Rails 4.0.13
Since v3.1.12Signature
add(path, options = {})
No documentation comment.
Parameters
-
pathreq -
optionsopt = {}
Source
# File railties/lib/rails/paths.rb, line 58
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 58
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Root