Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4520

Show
Ignore:
Timestamp:
06/30/06 03:15:42 (2 years ago)
Author:
david
Message:

Allow Rails controllers in too

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable/actionpack/lib/action_controller/routing.rb

    r4501 r4520  
    264264         
    265265      protected 
    266          
    267266        def safe_load_paths #:nodoc: 
    268267          if defined?(RAILS_ROOT) 
     
    270269              base = File.expand_path(base) 
    271270              extended_root = File.expand_path(RAILS_ROOT) 
    272               base[0, extended_root.length] == extended_root 
     271              base[0, extended_root.length] == extended_root || base =~ %r{rails-[\d.]+/builtin} 
    273272            end 
    274273          else