class Lookbook::EntityCollection
def next(entity)
def next(entity) index = entities.find_index { |i| i.path == entity.path } entities[index + 1] unless index.nil? end
def next(entity) index = entities.find_index { |i| i.path == entity.path } entities[index + 1] unless index.nil? end