1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Tidying up some require : removing useless sort and homogenizing with the rest of the code the wat the includes are done

This commit is contained in:
Intrepidd 2013-03-20 18:24:48 +00:00
parent acb78c27e8
commit 9c025ab6e9
2 changed files with 3 additions and 6 deletions

View file

@ -376,7 +376,4 @@ module ActiveModel
end
end
Dir[File.dirname(__FILE__) + "/validations/*.rb"].sort.each do |path|
filename = File.basename(path)
require "active_model/validations/#{filename}"
end
Dir[File.dirname(__FILE__) + "/validations/*.rb"].each { |file| require file }

View file

@ -1,4 +1,4 @@
Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].sort.each do |path|
Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].each do |path|
next if File.basename(path, '.rb') == 'logger'
require "active_support/core_ext/#{File.basename(path, '.rb')}"
require path
end