diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-23 12:35:20 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-23 12:35:20 -0800 |
commit | 4454ff1bcba360fb246acdd820a7cb4a2bfd8e11 (patch) | |
tree | f81455b704a37508e6e489d617990efe42470a6a | |
parent | bc4d05b244c78f03ade51d8b95f16dd48ceb63d3 (diff) | |
download | rails-4454ff1bcba360fb246acdd820a7cb4a2bfd8e11.tar.gz rails-4454ff1bcba360fb246acdd820a7cb4a2bfd8e11.tar.bz2 rails-4454ff1bcba360fb246acdd820a7cb4a2bfd8e11.zip |
Don't include .rb suffix in core_ext requires
-rw-r--r-- | activesupport/lib/active_support/core_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext.rb b/activesupport/lib/active_support/core_ext.rb index 4deef8c7a5..f2f976df9b 100644 --- a/activesupport/lib/active_support/core_ext.rb +++ b/activesupport/lib/active_support/core_ext.rb @@ -1,4 +1,4 @@ Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each do |path| - filename = File.basename(path) + filename = File.basename(path, '.rb') require "active_support/core_ext/#{filename}" end |