Skip to content
#

activerecord

Here are 892 public repositories matching this topic...

thelucid
thelucid commented Jun 19, 2014

I've come up against a bug with ActiveRecord when using namespaces models and polymorphic associations, it's a common use-case so should probably be fixed before a 4.2 release.

Error:

NoMethodError: undefined method `relation_delegate_class' for Comment:Module

Example:

class Post::Base < ActiveRecord::Base
  self.table_name = 'posts'
end

class Post::Special < Post::Base
  has

Improve this page

Add a description, image, and links to the activerecord topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the activerecord topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.