Turn #tasks into ActiveRecord::Relation instead of array