Problems with Plugin Models

I’m developing a plugin that provides several models (with a Rakefile to
generate the schema). However, I’m running into two problems:

  1. How can I setup a ‘models’ directory? Only ‘myplugin/lib’ is in the
    load
    path, and if I move my models to ‘myplugin/lib/models’ – even if I
    explicitly
    require them all – it tries to dynamically load them (and fails).

  2. I’m trying to store a model instance in a session, but I keep getting
    unknown class errors on my model when it tries to unmarshal (using
    ActiveRecordStore).

Per the wiki, I’ve added reloadable?() to all of my models.

Any suggestions? Thanks …

– Steve