File tree 4 files changed +38
-13
lines changed
4 files changed +38
-13
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,6 @@ config/database.yml
10
10
config /deploy.rb
11
11
config /deploy /*
12
12
config /exceptional.yml
13
+ vendor /bundler_gems /*
14
+ ! vendor /bundler_gems /cache /
15
+ bin /
Original file line number Diff line number Diff line change
1
+ clear_sources
2
+ bundle_path 'vendor/bundler_gems'
3
+
4
+ source 'http://gemcutter.org'
5
+ source 'http://gems.github.com'
6
+
7
+ gem 'rails' , '2.3.5'
8
+ gem 'ferret' , '0.11.6'
9
+ gem 'will_paginate' , '2.3.11'
10
+ gem 'ruby-recaptcha' , '1.0.0'
11
+ gem 'newrelic_rpm'
12
+
13
+ only :test do
14
+ gem 'rspec' , '1.2.9'
15
+ gem 'rspec-rails' , '1.2.9'
16
+ end
Original file line number Diff line number Diff line change 16
16
# you must remove the Active Record framework.
17
17
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
18
18
19
- # Specify gems that this application depends on.
20
- # They can then be installed with "rake gems:install" on new installations.
21
- # You have to specify the :lib option for libraries, where the Gem name (sqlite3-ruby) differs from the file itself (sqlite3)
22
- # config.gem "bj"
23
- # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
24
- # config.gem "sqlite3-ruby", :lib => "sqlite3"
25
- # config.gem "aws-s3", :lib => "aws/s3"
26
-
27
- config . gem "ferret"
28
- config . gem "mislav-will_paginate" , :lib => 'will_paginate' , :source => 'http://gems.github.com/'
29
- config . gem "ruby-recaptcha" , :lib => 'ruby-recaptcha'
30
- config . gem 'newrelic_rpm'
31
-
32
19
# Only load the plugins named here, in the order given. By default, all plugins
33
20
# in vendor/plugins are loaded in alphabetical order.
34
21
# :all can be used as a placeholder for all plugins not explicitly named
Original file line number Diff line number Diff line change
1
+ require "#{ File . dirname ( __FILE__ ) } /../vendor/bundler_gems/environment"
2
+
3
+ class Rails ::Boot
4
+ def run
5
+ load_initializer
6
+ extend_environment
7
+ Rails ::Initializer . run ( :set_load_path )
8
+ end
9
+
10
+ def extend_environment
11
+ Rails ::Initializer . class_eval do
12
+ old_load = instance_method ( :load_environment )
13
+ define_method ( :load_environment ) do
14
+ Bundler . require_env RAILS_ENV
15
+ old_load . bind ( self ) . call
16
+ end
17
+ end
18
+ end
19
+ end
You can’t perform that action at this time.
0 commit comments