class method
self.find
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v3.2.22.5Signature
self.find(dir=nil)
No documentation comment.
Parameters
-
diropt = nil
Source
# File railties/lib/rails/commands/plugin.rb, line 35
def self.find(dir=nil)
dir ||= pwd
while dir.length > 1
return new(dir) if File.exist?(File.join(dir, 'config', 'environment.rb'))
dir = File.dirname(dir)
end
end
Defined in railties/lib/rails/commands/plugin.rb line 35
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in RailsEnvironment