If i use representer with HAL links, i've got error because update! method is not set on LinkColection class
def represent_collection(collection, *args)
representer, dummy, options = parse_arguments({}, *args)
decorator = representer.new(dummy)
collection.map do |item|
decorator.update!(item)
decorator.to_hash(options)
end
end
So how to implement this ?
class Roar::Hypermedia::LinkCollection
def update!(arr)
# ... Implement here
end
end
If i use representer with HAL links, i've got error because
update!method is not set on LinkColection classSo how to implement this ?