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