So for configuring gem bundler on Rails 2.3.5: I changed my preinitializer. Rb script to this: Load the environment constructed from the Gemfile require "#{File. Dirname(__FILE__)}/../vendor/bundler_gems/environment" module Rails class Boot def run load_initializer extend_environment Rails::Initializer.
Run(:set_load_path) end def extend_environment Rails::Initializer. Class_eval do old_load = instance_method(:load_gems) define_method(:load_gems) do old_load. Bind(self).
Call Bundler. Require_env RAILS_ENV end end end end end And removed any Bundler. Require_env definitions from config/environment.
Rb, and all was good http://gist.github.com/286099.
So for configuring gem bundler on Rails 2.3.5: I changed my preinitializer. Rb script to this: # Load the environment constructed from the Gemfile require "#{File. Dirname(__FILE__)}/../vendor/bundler_gems/environment" module Rails class Boot def run load_initializer extend_environment Rails::Initializer.
Run(:set_load_path) end def extend_environment Rails::Initializer. Class_eval do old_load = instance_method(:load_gems) define_method(:load_gems) do old_load. Bind(self).
Call Bundler. Require_env RAILS_ENV end end end end end And removed any Bundler. Require_env definitions from config/environment.
Rb, and all was good. http://gist.github.com/286099.
This looks like it might work, but it's complicated. Calling Bundler. Require_env in a later phase would also work, no need in plugging in exactly at load_gems step.
– mislav Jan 25 '10 at 19:38 That worked for me (not sure why, but not complaining). I also started to get config. Gem: Unpacked gem environment.
Rb in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. Errors -- is it save to ignore those?
– Jonathan Feb 2 '10 at 16:06 Hmm this happened to me as well. You could try to just run the task, if that doesn't work, someone else posted a hack: stackoverflow. Com/questions/2144659/… But I think there's a smarter way to fix it.
Maybe just try deleting your Gemfile, then recreating it and running "Gem Bundle" again. Eh... – ajhit406 Feb 3 '10 at 17:24.
For reference, bundle is now on 0. 9.5. Here is the newest rails 2.3.5 config (you can basically ignore everything else here): gist.github.com/302406.
Most (or all) of these gems are Rails plugins. You should require them during Rails initialization phase. Stick this in your after_initialize: config.
After_initialize do Bundler. Require_env end.
Updated as Gem Bundler Documentation improves: gembundler.com/rails23.html.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.