Skip to content

Commit

Permalink
RouteSet should also handle anonymous classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 5, 2010
1 parent a5dda97 commit 6671d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/routing/deprecated_mapper.rb
Expand Up @@ -20,8 +20,8 @@ def controller_constraints
def in_memory_controller_namespaces
namespaces = Set.new
ActionController::Base.descendants.each do |klass|
controller_name = klass.name.underscore
namespaces << controller_name.split('/')[0...-1].join('/')
next if klass.anonymous?
namespaces << klass.name.underscore.split('/')[0...-1].join('/')
end
namespaces.delete('')
namespaces
Expand Down

0 comments on commit 6671d9c

Please sign in to comment.