# When developing a new Rails application if you gem unpack [gem] each of the gems
# you are using in the vendor directory you will have to explicitly require them.
# To resolve this maintenance pain put the following code in environment.rb.
Dir[File.dirname(__FILE__) + "/../vendor/*"].each do |path|
gem_name = File.basename(path.gsub(/-\d+.\d+.\d+$/, ''))
gem_path = path + "/lib/" + gem_name + ".rb"
require gem_path if File.exists? gem_path
end