Sha256: b59c39b9e9aac5acb4ff14256aa2643a0bdc98432aaa97df9495a481a2ea4d54
Contents?: true
Size: 392 Bytes
Versions: 24
Compression:
Stored size: 392 Bytes
Contents
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
24 entries across 24 versions & 1 rubygems