instance method
any_environment_files?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
any_environment_files?()
No documentation comment.
Source
# File railties/lib/rails/application.rb, line 787
def any_environment_files?
paths["config/environments"]
.paths
.flat_map { |path| [path, *path.glob("*.rb")] }
.select(&:file?)
.any?
end
Defined in railties/lib/rails/application.rb line 787
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application