diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-18 12:33:54 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-18 13:01:10 +0100 |
commit | bced489ac788d254329f666f90105cadd7f4d8f5 (patch) | |
tree | 7ec1afea63f5b9708473a5b8f50c5ff352b5d65a /railties/lib/rails | |
parent | 82f5dc5230b358af44c61808c8037d98b4991cf5 (diff) | |
download | rails-bced489ac788d254329f666f90105cadd7f4d8f5.tar.gz rails-bced489ac788d254329f666f90105cadd7f4d8f5.tar.bz2 rails-bced489ac788d254329f666f90105cadd7f4d8f5.zip |
Explain reason for eager loading
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config.ru.tt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config.ru.tt b/railties/lib/rails/generators/rails/app/templates/config.ru.tt index 4dddf0c03e..3a279ffcc0 100644 --- a/railties/lib/rails/generators/rails/app/templates/config.ru.tt +++ b/railties/lib/rails/generators/rails/app/templates/config.ru.tt @@ -3,6 +3,7 @@ require ::File.expand_path('../config/environment', __FILE__) <%- unless options[:skip_action_cable] -%> +# Action Cable uses EventMachine which requires that all classes are loaded in advance Rails.application.eager_load! require 'action_cable/process/logging' <%- end -%> |