Changeset 439

Show
Ignore:
Timestamp:
08/21/06 09:09:14 (2 years ago)
Author:
snowblink
Message:

Ticket #147: Changed require to require_dependency

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • user_engine/branches/rb_1.0/app/models/permission.rb

    r280 r439  
    4545      # weird hack. otherwise ActiveRecord has no idea about the superclass of any 
    4646      # ActionController stuff... 
    47       require RAILS_ROOT + "/app/controllers/application" 
     47      require_dependency RAILS_ROOT + "/app/controllers/application" 
    4848     
    4949      # Load all the controller files 
     
    5656      # we need to load all the controllers... 
    5757      controller_files.each do |file_name| 
    58         require file_name #if /_controller.rb$/ =~ file_name 
     58        require_dependency file_name #if /_controller.rb$/ =~ file_name 
    5959      end 
    6060