Skip to content

Commit

Permalink
Added back special case for ApplicationController
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Nov 20, 2008
1 parent 8be7d96 commit 5e55ed1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion activesupport/lib/active_support/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,12 @@ def loadable_constants_for_path(path, bases = load_paths)
rescue NameError
next
end
[ nesting_camel ]

[
nesting.camelize,
# Special case: application.rb might define ApplicationControlller.
('ApplicationController' if nesting == 'application')
]
end.flatten.compact.uniq
end

Expand Down

0 comments on commit 5e55ed1

Please sign in to comment.