has_permalink
has_permalink copied to clipboard
Don't autofix for the Objects own ID
When the model is updated, the current where clause checks against all permalinks for the model including its own ID which will always return true. Therefore it should be excluded as the model can override its own permalink.
Hi Ryan!
Thanks for your feedback! I'm sorry but I can't reproduce the bug, I've added a test to make sure the permalink isn't increased: https://github.com/olkarls/has_permalink/commit/732d115169d096ba79e176cb0da3362ed4d30271#diff-047fe204240af3473750d69298c03498 . Am I missing something?
Thanks