From ac264606c8f4912df11571fc390c9ef664698275 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 16 Aug 2009 18:15:23 -0700 Subject: [PATCH] DRY up the loading of the installer modules. --- lib/compass/installers.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/compass/installers.rb b/lib/compass/installers.rb index a92f1a3f..dbb2be41 100644 --- a/lib/compass/installers.rb +++ b/lib/compass/installers.rb @@ -1,5 +1,3 @@ -require File.join(File.dirname(__FILE__), 'installers', 'manifest') -require File.join(File.dirname(__FILE__), 'installers', 'base') -require File.join(File.dirname(__FILE__), 'installers', 'stand_alone') -require File.join(File.dirname(__FILE__), 'installers', 'rails') - +%w(manifest template_context base stand_alone rails).each do |f| + require File.join(File.dirname(__FILE__), 'installers', f) +end