From 9c025ab6e9731dde56186b41ba5d4f216a48c831 Mon Sep 17 00:00:00 2001 From: Intrepidd Date: Wed, 20 Mar 2013 18:24:48 +0000 Subject: Tidying up some require : removing useless sort and homogenizing with the rest of the code the wat the includes are done --- activemodel/lib/active_model/validations.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'activemodel/lib') 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 } -- cgit v1.2.3