From e6b93fa6db645d0acf18fc36d99ac8e13cb2091a Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 5 Aug 2010 22:47:01 +0200 Subject: Removed deprecated router API from railties --- railties/lib/rails/engine.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'railties/lib') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index c749fdfbe8..d46824704b 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -399,17 +399,6 @@ module Rails end end - # DEPRECATED: Remove in 3.1 - initializer :add_routing_namespaces do |app| - paths.app.controllers.to_a.each do |load_path| - load_path = File.expand_path(load_path) - Dir["#{load_path}/*/**/*_controller.rb"].collect do |path| - namespace = File.dirname(path).sub(/#{Regexp.escape(load_path)}\/?/, '') - app.routes.controller_namespaces << namespace unless namespace.empty? - end - end - end - # I18n load paths are a special case since the ones added # later have higher priority. initializer :add_locales do -- cgit v1.2.3