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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4a9cd711ccb80f1ab3ce17450c2857e4?d=identicon&s=25 Greg Willits (-gw-)
on 2008-10-19 01:05
After much tinkering, I have discovered that any module or plugin which
extends ActiveRecord causes Passenger to fail (application won't load at
all).

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
    end
  end
end

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
Monday)

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