Skip to content

Instantly share code, notes, and snippets.

@zbskii
Created December 16, 2011 17:41
Show Gist options
  • Save zbskii/1487073 to your computer and use it in GitHub Desktop.
Save zbskii/1487073 to your computer and use it in GitHub Desktop.
# Add gems from vendor dir
config.autoload_paths += Dir["#{config.root}/vendor/gems/**"].map do |dir|
File.directory?(lib = "#{dir}/lib") ? lib : dir
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment