1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #19975 from prathamesh-sonpatki/engine-minor-changes

Added missing fullstop in engine API docs [ci skip]
This commit is contained in:
Zachary Scott 2015-05-01 23:51:15 -07:00
commit 57b9ef1be8

View file

@ -405,7 +405,7 @@ module Rails
end
end
# Finds engine with given path
# Finds engine with given path.
def find(path)
expanded_path = File.expand_path path
Rails::Engine.subclasses.each do |klass|
@ -559,7 +559,7 @@ module Rails
# and the load_once paths.
#
# This needs to be an initializer, since it needs to run once
# per engine and get the engine as a block parameter
# per engine and get the engine as a block parameter.
initializer :set_autoload_paths, before: :bootstrap_hook do
ActiveSupport::Dependencies.autoload_paths.unshift(*_all_autoload_paths)
ActiveSupport::Dependencies.autoload_once_paths.unshift(*_all_autoload_once_paths)