Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Usage with abstract classes #2

Open
bright4 opened this issue Jan 4, 2010 · 0 comments
Open

Usage with abstract classes #2

bright4 opened this issue Jan 4, 2010 · 0 comments

Comments

@bright4
Copy link

bright4 commented Jan 4, 2010

When acts_as_list is used on an abstract class, which has multiple subclasses, in some cases the plugin tries to get the order of the items in the abstract class.

This of course fails (the table cannot be found).

My solution was to add a check for this:

def acts_as_list(options = {})
    return if abstract_class
    ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant