Permalink
Commits on Jul 27, 2009
  1. Rename internals to be consistent with the published name; parental_c…

    …ontrol, not self_control.
    h-lame committed Jul 27, 2009
  2. [#2] Support block-style building in has_many

    Pass through any supplied blocks for build and create in has_many associations so that the block-style stuff still works.  Not actually sure that has_one / belongs_to actually support this, so I've not done the same there.
    h-lame committed Jul 27, 2009
Commits on Nov 11, 2008
  1. Fixing a typo where I was still referring to the plugin by the origin…

    …al name self_control instead of parental_control
    h-lame committed Nov 11, 2008
  2. Big reworking of how candidates for recipricolness are found.

    Having to dig much deeper into rails internals now to know about how associations and their proxies are stored in the model and set them correctly when they are nil.  Also we have instance.is_a? instead of simple class equality to allow for STI type stuff going on.
    h-lame committed Nov 11, 2008
Commits on Sep 29, 2008
  1. If one model is has_manied to multiple other models and they had the …

    …same association name (and why wouldn't they) the first association to be called would be the only one you could use without causing a type mismatch error because of the caching we did not being specific enough.
    
    E.g.
    
    Bone.belongs_to :dog
    Bone.belongs_to :skeleton
    Dog.has_many :bones
    Skeleton.has_many :bones
    
    If we started with Bone and asked for dog then asked for skeleton, we'd get a mismatch on trying to set a Skeleton into the Dog.  We now make sure the reflection name and the instance class are used to cache the found association.
    h-lame committed Sep 29, 2008
Commits on Sep 12, 2008
Commits on Sep 10, 2008
  1. Fixed typo in README.

    h-lame committed Sep 10, 2008
Commits on Sep 8, 2008
  1. First commit, pulled (without the anaesthetic of git-svn) from our wo…

    …rk svn repo.
    
    It's far from complete, or comprehensively tested.  But we can sort that out over time.
    h-lame committed Sep 8, 2008