Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
10/02/07 05:32:14 (1 year ago)
Author:
bitsweat
Message:

Ruby 1.9 compat, consistent load paths

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/lib/active_support/core_ext.rb

    r7225 r7719  
    1 Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each { |file| require(file) } 
     1Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each do |path| 
     2  filename = File.basename(path) 
     3  require "active_support/core_ext/#{filename}" 
     4end