We assume that collections must be a kind of array. If not, we don't set them. In rails, a collection of results does not appear to be a kind of collection.
class Search < Valuable
has_collection :employees
end
>> Search.new(employees: Employee.where(true)).employees
=> nil
We assume that collections must be a kind of array. If not, we don't set them. In rails, a collection of results does not appear to be a kind of collection.
See https://github.com/mustmodify/valuable/blob/master/lib/valuable/utils.rb#L51-L52 and: