Skip to content

Commit

Permalink
Explain reason for eager loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Dec 18, 2015
1 parent 82f5dc5 commit bced489
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>
Expand Down

0 comments on commit bced489

Please sign in to comment.