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:
parent
acb78c27e8
commit
9c025ab6e9
2 changed files with 3 additions and 6 deletions
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue