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

Changeset 627

Show
Ignore:
Timestamp:
02/15/05 16:21:56 (4 years ago)
Author:
david
Message:

Move Controllers wrapper module away from environment.rb and into dependencies.rb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/dependencies.rb

    r579 r627  
    8787  end 
    8888end 
     89 
     90Controllers = Dependencies::LoadingModule.new(File.expand_path(File.join(RAILS_ROOT, 'app', 'controllers'))) if defined?(RAILS_ROOT) 
  • trunk/railties/environments/shared_for_gem.rb

    r625 r627  
    3838ActiveRecord::Base.establish_connection 
    3939 
    40 Controllers = Dependencies::LoadingModule.new(File.expand_path(File.join(RAILS_ROOT, 'app', 'controllers'))) 
    41  
    4240 
    4341# Configure defaults if the included environment did not. 
  • trunk/railties/environments/shared.rb

    r625 r627  
    4242ActiveRecord::Base.establish_connection 
    4343 
    44 Controllers = Dependencies::LoadingModule.new(File.expand_path(File.join(RAILS_ROOT, 'app', 'controllers'))) 
    45  
    4644 
    4745# Configure defaults if the included environment did not. 
  • trunk/railties/lib/rails_generator.rb

    r625 r627  
    2424$:.unshift(File.dirname(__FILE__)) 
    2525 
    26 require 'active_support' 
     26begin 
     27  require 'active_support' 
     28rescue LoadError 
     29  require 'rubygems' 
     30  require_gem 'activesupport' 
     31end 
    2732 
    2833require 'rails_generator/base'