Created
July 12, 2009 20:12
-
-
Save bmaland/145781 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/github_gem.rb | |
module Rails | |
class Configuration | |
def github_gem(name, options = {}) | |
options[:source] = 'http://gems.github.com' | |
options[:lib] = name.sub(/[^-]+-/, '') unless options.has_key?(:lib) | |
self.gem(name, options) | |
end | |
end | |
end | |
# Add this line at the top of config/environment.rb: | |
require File.join(File.dirname(__FILE__), '/../lib/github_gem') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment