From: Michael Gorsuch Date: 2006-05-15T02:57:35+09:00 Subject: Re: namespace conflicts ------=_Part_26994_8562663.1147629446902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Whoah. Thanks for that. On 5/14/06, Logan Capaldo wrote: > > > On May 14, 2006, at 9:12 AM, Michael Gorsuch wrote: > > > Good morning, everyone. > > > > I'm curious as to how I can resolve some namespace conflicts. I'm > > writing a > > Rails app (although this problem should be agnostic), and wrote a > > Payment > > model (which is a class for those that don't use Rails) for my app. > > > > I also have need to use the Payment gem from ruby forge, which uses > > 'Payment' as the name for the module. > > > > I obviously have a conflict here, but I'm wondering if anyone has any > > interesting ideas as to how I can solve it. > > > > As far as I see it, I'll need to rename one of the two objects. > > > > Thanks to everyone, > > > > Michael > > Nest your app in it's own namespace? > > module Gorsuch > class Payment < ActiveRecord::Base > ... > end > end > > Gorsuch::Payment.new #etc. > > > ------=_Part_26994_8562663.1147629446902--