class method
self.root
Ruby on Rails 7.1.6
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 108
def root
if defined?(ENGINE_ROOT)
Pathname.new(ENGINE_ROOT)
else
application_root
end
end
Defined in railties/lib/rails/command.rb line 108
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Command