Permalink
Browse files

Don't include .rb suffix in core_ext requires

  • Loading branch information...
1 parent bc4d05b commit 4454ff1bcba360fb246acdd820a7cb4a2bfd8e11 @jeremy jeremy committed Nov 23, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 4454ff1

Please sign in to comment.