Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

has_many情况下保存父类记录无法将父类ID赋值给子类 #7

Open
jerryshen opened this issue Jan 13, 2013 · 1 comment
Open

Comments

@jerryshen
Copy link

因为这段

    # hack id nil when Document.new
    def identify
      Identity.new(self).create
      nil
    end

导致has_many情况下保存父类记录无法将父类ID赋值给子类。

@jerryshen
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant