Skip to content

Instantly share code, notes, and snippets.

@Oshuma
Created August 6, 2010 17:35
Show Gist options
  • Save Oshuma/511657 to your computer and use it in GitHub Desktop.
Save Oshuma/511657 to your computer and use it in GitHub Desktop.
deps = %w[ mongo other-lib someother-lib ]
begin
deps.each { |dep| require dep }
rescue LoadError
require 'rubygems'
deps.each { |dep| require dep }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment