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

Adds a specific ArgumentError when passing nil to dom_id. #48987

Merged
merged 1 commit into from Aug 22, 2023

Commits on Aug 22, 2023

  1. Adds a specific ArgumentError when passing nil to dom_id. Which can h…

    …appen if you do something like pass a non-existent ivar dom_id(@something_non_existant)
    
    Before this would raise: `NoMethodError: undefined method `to_key' for nil:NilClass`
    After it raises `ArumentError: dom_id must be passed a record_or_class as the first parameter, you passed 'nil'`
    Austio authored and byroot committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6245c00 View commit details
    Browse the repository at this point in the history