I have a Location that has_many Item class. items have a scope for is_enabled. I can do
loc=Location.find(1) loc.items.is_enabled # and loc.item_ids # how would I do? loc.item_ids.is_enabled
thx
Use:
loc.items.is_enabled.map &:id