Sha256: 85e59fbebacedb7c33fd81d8ce0e8e180359a4cbb1ba15c1824a03b00cdb5412
Contents?: true
Size: 423 Bytes
Versions: 76
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true module SirTrevorRails module Blocks ## # Embed search results (from a browse category) into the page class LinkToSearchBlock < BrowseBlock include Displayable def searches @searches ||= parent.exhibit.searches.where(slug: item_ids).sort do |a, b| ordered_items.index(a.slug) <=> ordered_items.index(b.slug) end end end end end
Version data entries
76 entries across 76 versions & 1 rubygems