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

Fix select with block doesn't return newly built records in has_many association #28354

Merged

Commits on Mar 9, 2017

  1. Fix select with block doesn't return newly built records in has_many …

    …association
    
    The `select` in `QueryMethods` is also an enumerable method.
    Enumerable methods with block should delegate to `records` on
    `CollectionProxy`, not `scope`.
    
    Fixes rails#28348.
    kamipo committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    ef3d6fc View commit details
    Browse the repository at this point in the history