Forum: Ruby on Rails Passenger won't allow ActiveRecord to be extended ?

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.
Greg W. (Guest)
on 2008-10-19 03:05
After much tinkering, I have discovered that any module or plugin which
extends ActiveRecord causes Passenger to fail (application won't load at

Is this a known behavior?

I have confirmed that my Passenger installation is working just fine
with a simple Rails application that does not modify AR.

Passenger 2.0.3
OS X 10.5.4
Built-in Apache 2.2
ruby 1.8.6(114)
Rails 1.2.6

In one case, I'm doing this:

module ActiveRecord
  module Validations
    module ClassMethods
      # adding my custom methods here

And in another, I have created an acts_as plugin which is loaded by
conventional means of:

ActiveRecord::Base.send(:include, GW::ActsAsPessimistic)

This seems to be prettty sttandard stuff, and it works just fine on
several dev boxes using mongrel, so I don't see how I'm supposed to do
anything different in my source code.

(admittedly cross posted from Passenger user list to cast broader net on
this one because it's Saturday, and I'd really like to solve it before

-- gw
This topic is locked and can not be replied to.