Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 898 Bytes

TODO.md

File metadata and controls

37 lines (32 loc) · 898 Bytes

Primary objectives

  • fix a mess with Context: return an array of sync contexts, or aggregate all syncronization contexts into just one
  • destroy_missing
  • write a good README
  • extended interface
    • handle case when association type is a :hash
    • sync method for collection proxy (Model.where(condition).sync)
  • better specs for cases when we should fetch/find using complex params

Think about

  • has_many :bars, :through => FooModel
  • polymorphic associations

The desired interface:

+ Model.sync
+ Model.sync([{},...])
+ Match.sync(:include => {
  :match_players => :player
})
+ Model.sync([id1, ..., idn])
Model.where(condition).sync
Match.where(condition).sync(:include => {
  :match_players => :player
})