-
Notifications
You must be signed in to change notification settings - Fork 0
niklas/Dynamic-Attributes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
== Welcome This is an experiment. Goal: A hierarchy of classes by inheritance whose attribute definitions can be defined by the user (vs. the coder). Given you have the base class named Product - it may have a name (and a price, but we don't care for this, right?). When you inherit Product with "Clothes" by creating a new Classification and add an AttributeDefinition (:size, :integer), then you can instanciate this class and rails uses its STI technique. But instead of creating a column for every (possible) attribute, the user can add more an more to it.
About
a try for multi table inheritance
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published