class method
self.root
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
self.root()
Returns the root of the Rails engine or app running the command.
Source
# File railties/lib/rails/command.rb, line 102
def root
if defined?(ENGINE_ROOT)
Pathname.new(ENGINE_ROOT)
else
application_root
end
end
Defined in railties/lib/rails/command.rb line 102
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Command