-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
ActiveRecord deprecated finders are broken in 4.2 #16929
ActiveRecord deprecated finders are broken in 4.2 #16929
Conversation
I think we should not support the deprecated finders in 4.2 or at least patch the gem to work with 4.2 |
@seuros "It will be removed as a dependency in Rails 4.1, but users can manually include it in their Gemfile and it will continue to be maintained until Rails 5." Agree we should fix this from the gem's side if at all feasible, however. |
@@ -128,7 +128,8 @@ def find(*ids) | |||
primary_key.nil? || | |||
default_scopes.any? || | |||
columns_hash.include?(inheritance_column) || | |||
ids.first.kind_of?(Array) | |||
ids.first.kind_of?(Array) || | |||
ids.first.kind_of?(Symbol) |
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.
Could you documented this code is to support deprecated_finders?
4f863d2
to
4845497
Compare
Maintain compatibility for: * ActiveRecord::Base#find(:all) * ActiveRecord::Base#find(:first) * ActiveRecord::Base#find(:last)
4845497
to
6a3626b
Compare
Added comment and rebased. |
…_finders-find-symbol ActiveRecord deprecated finders are broken in 4.2
Thanks |
References: rails/activerecord-deprecated_finders#25
Maintain compatibility for:
I've got a solution and pointed a build at it. Viewable at Gemfile-edge @ https://travis-ci.org/kongregate/activerecord-deprecated_finders/builds/35390651.