Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subclassing in MotionData #12

Open
jetpad opened this issue Dec 7, 2012 · 1 comment
Open

Subclassing in MotionData #12

jetpad opened this issue Dec 7, 2012 · 1 comment

Comments

@jetpad
Copy link
Contributor

jetpad commented Dec 7, 2012

I have a "Note" model that needs to have a relationship with multiple other models so I'd like to create a base "Note" class that several other classes will inherit and then add the relationship in each of the derived classes. It looks like that currently isn't possible with MotionData. Any ideas on the approach for adding it? Is that making things too complicated? Or should I just add the multiple relationships to my "Note" model and then use the appropriate one for where it is being used?

@alloy
Copy link
Owner

alloy commented Dec 7, 2012

In theory it shouldn’t be too difficult, but somebody (you) will have to figure out what changes that would require. At the very least you would probably need to add the code to mark a class as ‘abstract’, if a ‘Note’ will never be used directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants