class Lookbook::PreviewCollection
def remove_by_file_path(paths)
def remove_by_file_path(paths) paths = Array(paths).map(&:to_s) @entities.reject! { |preview| preview.file_path.to_s.in?(paths) } clear_cache end
def remove_by_file_path(paths) paths = Array(paths).map(&:to_s) @entities.reject! { |preview| preview.file_path.to_s.in?(paths) } clear_cache end