-
Notifications
You must be signed in to change notification settings - Fork 294
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
Fixes #16088 - Compatibility with Rails 4.2.7 #6244
Conversation
Fixes a deprecation that caused tests to fail "Passing a nested array to Active Record finder methods is deprecated and will be removed. Flatten your array before using it for 'IN' conditions."
http://ci.theforeman.org/job/test_katello_core/19693 runs tests as Jenkins is waiting for a stable build - I merged the core patch too promptly and realized too late, sorry - it'd be safe to merge if that job passes |
@@ -73,7 +73,7 @@ def test_update_from_json | |||
errata = katello_errata(:security) | |||
json = errata.attributes.merge('description' => 'an update', 'updated' => DateTime.now, 'reboot_suggested' => true) | |||
errata.update_from_json(json) | |||
errata = Erratum.find(errata) | |||
errata = Erratum.find(errata.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just curious about this change and why it was needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new deprecation apparently (not yet dropped in Rails), it's all over though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for the heads up.
ACK. Merging to get jenkins green. |
Fixes a deprecation that caused tests to fail "Passing a nested array to Active Record finder methods is deprecated and will be removed. Flatten your array before using it for 'IN' conditions."
Fixes a deprecation that caused tests to fail "Passing a nested array to Active Record finder methods is deprecated and will be removed. Flatten your array before using it for 'IN' conditions."
Fixes a deprecation that caused tests to fail
"Passing a nested array to Active Record finder methods is deprecated
and will be removed. Flatten your array before using it for 'IN'
conditions."