Another way to get prefixes for all your class is to do something like
Make a new folder in plugins called prefixed (or whatever)
Add a file init.rb with require ‘prefixed’ in it…
Add a directory ‘lib’ with a sinlge file ‘prefixed.rb’ in it.
Then in prefixed.rb add the following:
class << Base
alias :original_table_name :table_name
#could setup a lot more complicated rules here.
that way everything will work as it used to, but also add the prefix
to all your models for free. I’m not sure what you could do with the
rules to get the prefix value, but something more interesting then
what I have there should be doable.