Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Created June 19, 2009 03:49
Show Gist options
  • Save bmizerany/132396 to your computer and use it in GitHub Desktop.
Save bmizerany/132396 to your computer and use it in GitHub Desktop.
Rails::Initializer.run do |config|
# Require the latest version of haml
config.gem "haml"
# Require a specific version of chronic
config.gem "chronic", :version => '0.2.3'
# Require a gem from a non-standard repo
config.gem "hpricot", :source => "http://code.whytheluckystiff.net"
# Require a gem that needs to require a file different than the gem's name
# I.e. if you normally load the gem with require 'aws/s3' instead of
# require 'aws-s3' then you would need to specify the :lib option
config.gem "aws-s3", :lib => "aws/s3"
end
Rails::Initializer.run do |config|
%w|haml chronic hpricot aws-s3|.each do |gem|
config.gem gem
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment