Forum: Ruby on Rails Libraries referencing models?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
isopaleocopria (Guest)
on 2007-06-07 23:12
(Received via mailing list)
I have been perusing the source code for instiki (http:// and noticed that in some of the library
classes, there are references to model classes. And of course model
classes refer to library classes.

When deployed in production mode, everything works, but if you deploy
instiki in development mode, a superclass mismatch error occurs.

It strikes me that this tight coupling is a bad design: models should
refer to libraries, but not vice versa. Otherwise, there is no
separation of concern.
This topic is locked and can not be replied to.