ActiveRecord #scoped is deprecated
wkrsz opened this issue · comments
This works for me:
Hi, I assume this is for rails 4 ? Does the call to all
return an array or a ActiveRecord::Relation ? Would you be interested in generating a pull request that is backwards compatible with the existing code ?
FYI UserSet is going to be deprecated, which will eliminate this issue. Instead of pulling a user in from the database, a list of users is cached using whatever code you define for SwitchUser.available_users
.
I'm going to close this request, but feel free to reopen it if you have any other questions/feedback.
Oops. I submitted a PR for this, but sounds like you can probably ignore it.
I merged it in anyways, so you could have the satisfaction :) Thanks for your help!
👍 thanks =)