class ViewComponent::Collection
def collection_variable(object)
def collection_variable(object) if object.respond_to?(:to_ary) object.to_ary else raise ArgumentError.new("The value of the argument isn't a valid collection. Make sure it responds to to_ary: #{object.inspect}") end end