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

Scoping reserved names #31179

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Commits on Nov 28, 2017

  1. Prevent scope named same as a ActiveRecord::Relation instance method.

    Due to inconsistent behavior when chaining scopes and one scope named after a Relation method
    
    Validation code added in 2 places:
    
    - scope, to prevent problematic scope names.
    - enum, cause it tries to auto define scope.
    kinnrot committed Nov 28, 2017
    Configuration menu
    Copy the full SHA
    6552ce0 View commit details
    Browse the repository at this point in the history