Skip to content

Commit

Permalink
Allow Rails controllers in too
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@4520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Jun 30, 2006
1 parent bd01d40 commit 14f11a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionpack/lib/action_controller/routing.rb
Expand Up @@ -263,13 +263,12 @@ def traverse_to_controller(segments, start_at = 0)
end end


protected protected

def safe_load_paths #:nodoc: def safe_load_paths #:nodoc:
if defined?(RAILS_ROOT) if defined?(RAILS_ROOT)
$LOAD_PATH.select do |base| $LOAD_PATH.select do |base|
base = File.expand_path(base) base = File.expand_path(base)
extended_root = File.expand_path(RAILS_ROOT) extended_root = File.expand_path(RAILS_ROOT)
base[0, extended_root.length] == extended_root base[0, extended_root.length] == extended_root || base =~ %r{rails-[\d.]+/builtin}
end end
else else
$LOAD_PATH $LOAD_PATH
Expand Down

0 comments on commit 14f11a7

Please sign in to comment.