evan / has_many_polymorphs

An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/
Academic Free License v3.0
201 stars 57 forks source link

in production, undefined method, but in development - no problems #21

Open chewmanfoo opened 13 years ago

chewmanfoo commented 13 years ago

here's what I see in the console in production: Loading production environment (Rails 2.3.11) /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activerecord-2.3.11/lib/active_record/base.rb:1998:in method_missing':NoMethodError: undefined methodhas_many_polymorphs' for #Class:0xd11d480

but in development mode, no problems.

Why would there be a difference?

my production.rb and development.rb files make no mention of has_many_polymorphs.

wallace commented 13 years ago

Are you using bundler? Maybe the gem is specified in a development group but not in production?