class method
self.in_rails_application_subdirectory?
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
self.in_rails_application_subdirectory?(path = Pathname.new(Dir.pwd))
No documentation comment.
Parameters
-
pathopt = Pathname.new(Dir.pwd)
Source
# File railties/lib/rails/script_rails_loader.rb, line 25
def self.in_rails_application_subdirectory?(path = Pathname.new(Dir.pwd))
File.exists?(File.join(path, SCRIPT_RAILS)) || !path.root? && in_rails_application_subdirectory?(path.parent)
end
Defined in railties/lib/rails/script_rails_loader.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::ScriptRailsLoader