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 error "undefined method nil for nil:NilClass" on Single Table Inheritance #42

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

mweitzel
Copy link
Contributor

This PR fixes an error introduced in 1.2.0, where sub-classes would err on cascading updates and deletes.

full error:
     NoMethodError:

     undefined method `nil` for nil:NilClass

             ltree_options[key]
                          ^^^^^

full error:
     NoMethodError:

     undefined method `nil` for nil:NilClass

             ltree_options[key]
                          ^^^^^
@sjke sjke self-requested a review November 24, 2022 07:37
@sjke sjke merged commit fcbcd1f into sjke:master Nov 24, 2022
@mweitzel mweitzel deleted the bugfix/sti-options-and-inheritence branch November 25, 2022 13:32
@jeremiemv
Copy link

@sjke thank you so much for your gem! Any chance we could get a release with this fix?

@sjke
Copy link
Owner

sjke commented Nov 29, 2022

@jeremiemv the new version is released. Enjoy.

@jeremiemv
Copy link

Wow that was fast! Thank you @sjke 👍

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.

3 participants