-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Rails 5: Tagger is optional in Tagging relation. #720
Rails 5: Tagger is optional in Tagging relation. #720
Conversation
I can confirm this resolves the ROLLBACK problem in Rails 5 when trying to save a model's tag list. |
+1 |
+1 |
Can this be merged? In the meantime, I've forked, applied the change to get it working, and am bundling my fork (with |
Any updates on this? It'd help a bunch. |
+1 for anyone lazy enough to not want to create a fork with just this 1-line fix, use mine:
you can just remove the github param once the author decides to merge OP's PR |
From Issue in parent repo: mbleigh#720
I created the fork on the latest master, and borrowed the oneliner from the posters above. Thanks y'all @ everyone: you can use my fork; it is the latest master plus the oneliner provided by @klacointe |
thank you |
@seuros will this be pushed to RubyGems any time soon? Thanks for your work here :) |
@connorshea If you need the fix now, you can just point your Gemfile to use Github:
and then go back to RubyGems when a new version is pushed. |
@cireficc we have a policy against it for security and stability reasons, so unfortunately that won't work. |
@connorshea Not sure what you mean. I point to the github master, because of the latest fixes, and it works allright. |
@F3PiX I mean the company I work for (GitLab) |
Is this in a released gem yet? |
@logicminds yeah it's in 4.0.0. |
Wouldn't this require a migration change as well? I'm saying that because The following change (made on this migration) solved the issue I was having ( - t.references :tagger, polymorphic: true
+ t.references :tagger, polymorphic: true, null: true |
…_tagger Rails 5: Tagger is optional in Tagging relation.
Rails 5 automatically adds a presence validation on belongs_to associations: