Lewis Hoffman
unread,Aug 5, 2008, 4:28:51 PM8/5/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dr Nic's Magic Models, trop...@gmail.com
Hi everyone,
I'm using the magic_model_generator to hook up to a legacy database.
What I want is to have the generator dump the models into a specific
directory, a specific namespace, & different inheritance.
ie. instead of
app/models/foo.rb --> class Foo < ActiveRecord::Base ...
I want
app/models/legacy/foo.rb --> class Legacy::Foo < Legacy::Base...
Any ideas how to do it? I poked around in the source a bit and I see
variables that I think hold these values, but haven't understood well
enough to monkeypatch modifications yet. Of the three changes, the
file location is the most important, others I can munge by hand later.
thanks!
Lewis