Skip to content

Kasket doesn't understand the difference between .find() and :include =>  #4

@osheroff

Description

@osheroff

on read_mixin.rb:45 Kasket unconditionally does find(missing_ids). find obviously raises when an id is not present. This is correct for a call like 'User.find([1,2,3])' (where user #3 is destroyed), but something like User.all(:include => :group) will raise when a User references a destroyed group object.

The "correct" rails semantics here are to leave the association unfilled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions