-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
#311 Don't insert invalid ActiveRecord objects #312
Conversation
Hi Sean, do you think insert_at should maybe raise an error rather than return false if used on a new object? I suppose the way you've done it means that it behaves similarly to setting the position property and then saving. |
Good question. I think we can add an |
Yes good call on that :) Then that gives users the choice. Once that's done I'll merge this. :) |
Thanks @seanabrahams, that looks ok to me. We will have to drop the keyword arguments though since the test suite still supports Ruby 1.9. There also seem to be some other intermittent failures in there. @swanandp, what's your view on Ruby 1.9 support now? I guess it depends on if we want to support Rails 3.2 anymore. |
No worries if it needs to be refactored to not use keyword arguments. Passing a method argument down the call chain isn't the most elegant implementation but it looked like significant re-engineering would be required otherwise. Happy to discuss alternatives. |
Thanks @seanabrahams, I think yes remove the keyword arguments for now. That's something to look at in a more major refactor. Then lets see how the test suite goes. :) |
15312a2
to
2820d06
Compare
2820d06
to
7188470
Compare
Sorry @seanabrahams, I didn't see your update. I think you have to comment for me to be notified again :) This looks good and it looks like the test suite is fixed too. I'll merge this now. |
Closes #311 |
Released as 0.9.14 |
Initial fix for #311