Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

The last remix 1 is not working in the README example code. #3

@gugod

Description

@gugod

Hi,

I try to run the example code in the README.rdoc and found it failed from dm-core:

/usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/associations/relationship.rb:173:in `target_model': Cannot find the child_model VideoCommentVotes for User in video_comment_votes (NameError)

The code actually used is here: http://gist.github.com/582753

If I change line 85 to remix n like:

remix n, :votes, :for => "User"

Then it worked. The migration is finished and the created tables seems to be correct for me.

I discovered this when I was playing with dm-is-remixable and remix 1 was never working in there. It was a direct, non-nested remix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions