Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't include .rb suffix in core_ext requires

  • Loading branch information...
commit 4454ff1bcba360fb246acdd820a7cb4a2bfd8e11 1 parent bc4d05b
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/core_ext.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.