Closed sshaw closed 3 years ago
Without checking, I think you need to add _id
to any columns within an array scope (it's a hangup from the old days where you could omit the _id
from a symbol scope and it would be added on):
acts_as_list scope: [:owner_id, :discarded_at => nil]
Let me know if that doesn't work though.
If it interests you, here's where scopes are defined: https://github.com/brendon/acts_as_list/blob/master/lib/acts_as_list/active_record/acts/scope_method_definer.rb
Hi, thanks. I thought that was attempted but I do see that it is working now with _id
.
Version: 1.0.3 Active Record: 5.2.3
Adds the following SQL criteria:
But when scoping to a column (sorta like the example in the docs):
The following criteria is added;