aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine.rb
diff options
context:
space:
mode:
authorOemuer Oezkir <oemuer.oezkir@gmail.com>2011-07-24 10:21:42 +0000
committerOemuer Oezkir <oemuer.oezkir@gmail.com>2011-07-24 10:21:42 +0000
commit71d18ce48ebcb6b3380309a225af12aba2aeb8ed (patch)
treec4d3414b9db81ebe31178b0355a41b5f5dd9f031 /railties/lib/rails/engine.rb
parent9b9cf92768614eb7dedd190e898b0062c083d8bf (diff)
downloadrails-71d18ce48ebcb6b3380309a225af12aba2aeb8ed.tar.gz
rails-71d18ce48ebcb6b3380309a225af12aba2aeb8ed.tar.bz2
rails-71d18ce48ebcb6b3380309a225af12aba2aeb8ed.zip
Changed a few instances of of words in the API docs written in British English to
American English(according to Weber)
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r--railties/lib/rails/engine.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb
index cb897e94d7..c41f7d7c2e 100644
--- a/railties/lib/rails/engine.rb
+++ b/railties/lib/rails/engine.rb
@@ -220,7 +220,7 @@ module Rails
# If an engine is marked as isolated, +FooController+ has access only to helpers from +Engine+ and
# <tt>url_helpers</tt> from <tt>MyEngine::Engine.routes</tt>.
#
- # The next thing that changes in isolated engines is the behaviour of routes. Normally, when you namespace
+ # The next thing that changes in isolated engines is the behavior of routes. Normally, when you namespace
# your controllers, you also need to do namespace all your routes. With an isolated engine,
# the namespace is applied by default, so you can ignore it in routes:
#
@@ -232,7 +232,7 @@ module Rails
# need to use longer url helpers like <tt>my_engine_articles_path</tt>. Instead, you should simply use
# <tt>articles_path</tt> as you would do with your application.
#
- # To make that behaviour consistent with other parts of the framework, an isolated engine also has influence on
+ # To make that behavior consistent with other parts of the framework, an isolated engine also has influence on
# <tt>ActiveModel::Naming</tt>. When you use a namespaced model, like <tt>MyEngine::Article</tt>, it will normally
# use the prefix "my_engine". In an isolated engine, the prefix will be omitted in url helpers and
# form fields for convenience.
@@ -404,15 +404,15 @@ module Rails
super
paths["lib/tasks"].existent.sort.each { |ext| load(ext) }
end
-
+
def load_console(app=self)
railties.all { |r| r.load_console(app) }
super
end
-
+
def eager_load!
railties.all(&:eager_load!)
-
+
config.eager_load_paths.each do |load_path|
matcher = /\A#{Regexp.escape(load_path)}\/(.*)\.rb\Z/
Dir.glob("#{load_path}/**/*.rb").sort.each do |file|