class method
self.usage_path
Ruby on Rails 8.1.2
Since v3.2.22.5Signature
self.usage_path()
No documentation comment.
Source
# File railties/lib/rails/generators/base.rb, line 414
def self.usage_path # :doc:
paths = [
source_root && File.expand_path("../USAGE", source_root),
default_generator_root && File.join(default_generator_root, "USAGE")
]
paths.compact.detect { |path| File.exist? path }
end
Defined in railties/lib/rails/generators/base.rb line 414
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Base