module Rails::ScriptRailsLoader
def self.in_rails_application_subdirectory?(path = Pathname.new(Dir.pwd))
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