On Wed, Aug 10, 2011 at 9:03 AM, Chris Lalancette <clalance(a)redhat.com> wrote:
On 08/10/11 - 10:02:41AM, Lukas Zapletal wrote:
> On 08/08/2011 04:37 PM, Ohad Levy wrote:
> > 3) Unstitch bundler from the rails3 app
>
> According to the Rails 3 Way book the only thing is to remove Gemfile*
> files and that's it.
>
> Unfortunately Rails 3 then starts screaming about unknown constants
> (unrequired files). It can take some time to fix it and can be difficult
> for developers to keep requires up-to-date (since they are using Bundler).
I'll admit I haven't really looked in any detail, but my thought about how
this would look is something like:
if use_bundler
Bundler.require(:default, Rails.env)
else
require 'foo'
require 'bar'
require 'baz'
...
end
But maybe that is too simplistic.
That seems like a reasonable first pass to me too, I'll give it a try
today on conductor and see how it goes. If it works, it would be nice
to have those requires in one place (some kind of template that gets
pulled in directly or transformed into a Gemfile perhaps).
-j