Skip to content

Commit

Permalink
Add action_cable to rails/all and application.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Dec 14, 2015
1 parent 2e701a0 commit 3cf7b30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions railties/lib/rails/all.rb
@@ -1,16 +1,17 @@
require "rails"

%w(
active_record
action_controller
action_view
action_mailer
active_job
rails/test_unit
sprockets
).each do |framework|
active_record/railtie
action_controller/railtie
action_view/railtie
action_mailer/railtie
active_job/railtie
action_cable/engine
rails/test_unit/railtie
sprockets/railtie
).each do |railtie|
begin
require "#{framework}/railtie"
require "#{railtie}"
rescue LoadError
end
end
Expand Up @@ -11,6 +11,7 @@
require "action_controller/railtie"
<%= comment_if :skip_action_mailer %>require "action_mailer/railtie"
require "action_view/railtie"
require "action_cable/engine"
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
<%= comment_if :skip_test %>require "rails/test_unit/railtie"
<% end -%>
Expand Down

0 comments on commit 3cf7b30

Please sign in to comment.