This method is deprecated or moved on the latest stable version.
The last existing version (v5.0.0.1) is shown here.
namespaces_to_paths(namespaces)
protected
Convert namespaces to paths by replacing “:” for “/” and adding an
extra lookup. For
example, “rails:model” should be searched in both:
“rails/model/model_generator” and “rails/model_generator”.
# File railties/lib/rails/generators.rb, line 387
def self.namespaces_to_paths(namespaces) #:nodoc:
paths = []
namespaces.each do |namespace|
pieces = namespace.split(":")
paths << pieces.dup.push(pieces.last).join("/")
paths << pieces.join("/")
end
paths.uniq!
paths
end