Skip to content

Instantly share code, notes, and snippets.

@wmoxam
Created September 8, 2008 19:29
Show Gist options
  • Save wmoxam/9512 to your computer and use it in GitHub Desktop.
Save wmoxam/9512 to your computer and use it in GitHub Desktop.
config.load_paths += Dir["#{RAILS_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