aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-23 12:35:20 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-23 12:35:20 -0800
commit4454ff1bcba360fb246acdd820a7cb4a2bfd8e11 (patch)
treef81455b704a37508e6e489d617990efe42470a6a /activesupport/lib/active_support/core_ext.rb
parentbc4d05b244c78f03ade51d8b95f16dd48ceb63d3 (diff)
downloadrails-4454ff1bcba360fb246acdd820a7cb4a2bfd8e11.tar.gz
rails-4454ff1bcba360fb246acdd820a7cb4a2bfd8e11.tar.bz2
rails-4454ff1bcba360fb246acdd820a7cb4a2bfd8e11.zip
Don't include .rb suffix in core_ext requires
Diffstat (limited to 'activesupport/lib/active_support/core_ext.rb')
-rw-r--r--activesupport/lib/active_support/core_ext.rb2
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