aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-21 05:37:48 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-21 05:37:48 -0700
commit34d9aed32ed785148bcb97b027b9a90ee2850603 (patch)
treea669add8ccf3f1639a29a0c0c3e502920f697030 /activemodel/lib/active_model/validations.rb
parentb1b9de3d967eef113246666c28a403f3fb75ea68 (diff)
parent9c025ab6e9731dde56186b41ba5d4f216a48c831 (diff)
downloadrails-34d9aed32ed785148bcb97b027b9a90ee2850603.tar.gz
rails-34d9aed32ed785148bcb97b027b9a90ee2850603.tar.bz2
rails-34d9aed32ed785148bcb97b027b9a90ee2850603.zip
Merge pull request #9836 from Intrepidd/tidy-require
Tidying up some require and removing overhead caused by sorting
Diffstat (limited to 'activemodel/lib/active_model/validations.rb')
-rw-r--r--activemodel/lib/active_model/validations.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
index 72e3cf310a..714cc95b9a 100644
--- a/activemodel/lib/active_model/validations.rb
+++ b/activemodel/lib/active_model/validations.rb
@@ -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 }