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

5-1-stable: Fix unscoping default_scope in STI associations #29877

Merged
merged 2 commits into from
Jul 21, 2017

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Jul 20, 2017

Backported #29834.

Since 5c71000, it has lost to be able to unscope default_scope in STI
associations. This change will use .empty_scope? instead of
.values.empty? to regard as an empty scope if only have
type_condition.

Since 5c71000, it has lost to be able to unscope `default_scope` in STI
associations. This change will use `.empty_scope?` instead of
`.values.empty?` to regard as an empty scope if only have
`type_condition`.
@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 5-1-stable. Please double check that you specified the right target!

@rafaelfranca rafaelfranca merged commit 5d777f9 into rails:5-1-stable Jul 21, 2017
@kamipo kamipo deleted the backport_29834 branch July 21, 2017 23:19
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

Successfully merging this pull request may close these issues.

None yet

3 participants