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

MONGOID-5789 Allow nil attribute access (backport of #5836) #5838

Merged
merged 2 commits into from
Jul 15, 2024

Commits on Jul 12, 2024

  1. MONGOID-5789 database_field_name given nil or empty string should rai…

    …se UnknownAttribute exception (mongodb#5836)
    
    * database_field_name given nil or empty string should raise UnknownAttribute exception
    
    * fix spec syntax
    
    * database_field_name return empty string instead of exception
    
    * `field` might be an empty string, not merely nil
    
    * fix specs to expect empty string instead of nil
    
    This is okay, because the database_field_name method is a private API.
    We can change the contract here without regard for who else might
    be using it.
    
    ---------
    
    Co-authored-by: Jamis Buck <[email protected]>
    danhealy and jamis committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a29067d View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    7fa56ae View commit details
    Browse the repository at this point in the history