Skip to content

Commit

Permalink
Merge pull request rails#37228 from eugeneius/action_dispatch_respons…
Browse files Browse the repository at this point in the history
…e_autoload

Allow ActionDispatch::Response to be autoloaded
  • Loading branch information
kamipo committed Sep 18, 2019
2 parents 0fa8c0a + aaa9b66 commit 19a2d5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actionpack/lib/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require "abstract_controller"
require "action_dispatch"
require "action_controller/metal/live"
require "action_controller/metal/strong_parameters"

module ActionController
Expand All @@ -20,6 +19,10 @@ module ActionController
end

autoload_under "metal" do
eager_autoload do
autoload :Live
end

autoload :ConditionalGet
autoload :ContentSecurityPolicy
autoload :Cookies
Expand Down

0 comments on commit 19a2d5c

Please sign in to comment.