Rails model naming conflict


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

  • jason

On 1/15/07, Jason [email protected] wrote:

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.