From 8eb4600c881f55370663f3a6225271d9cdc7bdbd Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Sat, 25 Aug 2012 01:23:47 +0200 Subject: No need to use included hook for include When module is extended ActiveSupport::Concern, include calls are lazily loaded, so there is no need to wrap it with included hook. --- actionpack/lib/action_controller/metal/asset_paths.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'actionpack/lib/action_controller/metal/asset_paths.rb') diff --git a/actionpack/lib/action_controller/metal/asset_paths.rb b/actionpack/lib/action_controller/metal/asset_paths.rb index 5165814dfe..3c1c95c042 100644 --- a/actionpack/lib/action_controller/metal/asset_paths.rb +++ b/actionpack/lib/action_controller/metal/asset_paths.rb @@ -4,9 +4,7 @@ module ActionController module AssetPaths extend ActiveSupport::Concern - included do - include AbstractController::AssetPaths - end + include AbstractController::AssetPaths def invalid_asset_host!(help_message) raise ActionController::RoutingError, "This asset host cannot be computed without a request in scope. #{help_message}" -- cgit v1.2.3