forked from cardmagic/dm-more
/
TODO
18 lines (15 loc) · 774 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FIXME
====
Add ability to have a unique relationship when joining through remixable
This is stubbed at remixable.rb @~ line 223; waiting on stategic eager loading
M:M Video.remix n, :commentables, :as => "comments", :for => "User", :unique => false
M:M Article.remix n, :views, :for => "User", :unique => true
in the generated table article_views article_id and user_id would be a unique key,
only counting a users viewing of an article once
TODO
====
- Add ability to set primary keys and indexes when remixing
- Test nested remixing User remixes Photogenic; Photogenic Remixes comments
- Test double+ remixing. User remixes Commentable; enhance Commentable remix Commentable
- Remixable.related(*remixed_models)
Taggable.related(Article, JobPostings)