Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bundler

  • Loading branch information...
commit ab5e71825bdaeacf64b22853fcf1f20e55d4263d 1 parent a875029
@stevenhaddox authored
Showing with 23 additions and 12 deletions.
  1. +15 −0 config/boot.rb
  2. +8 −12 config/environment.rb
View
15 config/boot.rb
@@ -106,5 +106,20 @@ def read_environment_rb
end
end
+# Bundler
+class Rails::Boot
+ def run
+ load_initializer
+
+ Rails::Initializer.class_eval do
+ def load_gems
+ @bundler_loaded ||= Bundler.require :default, Rails.env
+ end
+ end
+
+ Rails::Initializer.run(:set_load_path)
+ end
+end
+
# All that for this:
Rails.boot!
View
20 config/environment.rb
@@ -15,18 +15,14 @@
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Specify gems that this application depends on and have them installed with rake gems:install
- # config.gem "bj"
- # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
- # config.gem "sqlite3-ruby", :lib => "sqlite3"
- # config.gem "aws-s3", :lib => "aws/s3"
- config.gem 'commonthread-flickr_fu', :lib => 'flickr_fu', :source => 'http://gems.github.com'
- config.gem 'jnunemaker-twitter', :lib => 'twitter', :source => 'http://gems.github.com'
- config.gem 'formtastic', :source => 'http://gemcutter.org'
- config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org'
- #config.gem 'less', :source => 'http://gems.rubyforge.org/'
- #config.gem 'less', :version => '~> 1.2.11', :source => 'http://gemcutter.org'
- config.gem 'uuid'
- config.gem 'nokogiri'
+ # config.gem 'commonthread-flickr_fu', :lib => 'flickr_fu', :source => 'http://gems.github.com'
+ # config.gem 'jnunemaker-twitter', :lib => 'twitter', :source => 'http://gems.github.com'
+ # config.gem 'formtastic', :source => 'http://gemcutter.org'
+ # config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org'
+ # #config.gem 'less', :source => 'http://gems.rubyforge.org/'
+ # #config.gem 'less', :version => '~> 1.2.11', :source => 'http://gemcutter.org'
+ # config.gem 'uuid'
+ # config.gem 'nokogiri'
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
Please sign in to comment.
Something went wrong with that request. Please try again.