class ViewModel::Utils

def array_like?(obj)

Cover arrays and also Rails' array-like types.
def array_like?(obj)
  obj.respond_to?(:to_ary)
end