aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-08-25 01:23:47 +0200
committerPiotr Sarnacki <drogus@gmail.com>2012-08-28 11:19:36 +0200
commit8eb4600c881f55370663f3a6225271d9cdc7bdbd (patch)
tree2da171bc702a08424df6a60e75d5725f4b8dcd4f /actionpack
parent582a7f459990487659886b90e54c22e055c65870 (diff)
downloadrails-8eb4600c881f55370663f3a6225271d9cdc7bdbd.tar.gz
rails-8eb4600c881f55370663f3a6225271d9cdc7bdbd.tar.bz2
rails-8eb4600c881f55370663f3a6225271d9cdc7bdbd.zip
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.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/asset_paths.rb4
1 files changed, 1 insertions, 3 deletions
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}"