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

Changeset 6054

Show
Ignore:
Timestamp:
01/28/07 06:19:07 (2 years ago)
Author:
ulysses
Message:

Change session restoration to allow namespaced models to be autoloaded. Closes #6348.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r6053 r6054  
    11*SVN* 
     2 
     3* Change session restoration to allow namespaced models to be autoloaded. Closes #6348. [Nicholas Seckar] 
    24 
    35* Fix doubly appearing parameters due to string and symbol mixups. Closes #2551. [aeden] 
  • trunk/actionpack/lib/action_controller/cgi_process.rb

    r5824 r6054  
    154154        yield 
    155155      rescue ArgumentError => argument_error 
    156         if argument_error.message =~ %r{undefined class/module ([\w:]+)} 
     156        if argument_error.message =~ %r{undefined class/module ([\w:]*\w)} 
    157157          begin 
    158             Module.const_missing($1) 
     158            # Note that the regexp does not allow $1 to end with a ':' 
     159            $1.constantize 
    159160          rescue LoadError, NameError => const_error 
    160161            raise ActionController::SessionRestoreError, <<-end_msg