On 1/15/07, Jason
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I have a problem with my Rails app re:namespaces. I have a model called
> ''Document'' (name cannot be changed) which conflicts with
the
> REXML::Document ojbect.
>
> Anyone know of a way to get around this. I have quite a bit of code that
> uses my ''Document'' model and it would be a real pain for
me to go back
> and re-edit/re-do stuff.
>
> I''m hoping there''s something I can do in my code on the
REXML::Document
> declarations, but I''m not sure what that would be yet. Any
suggestions
> would be appreciated. tia
You should be able to reference your model as ::Document. As long as
you don''t "include REXML", that should work fine.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---