Sha256: 419c1a400bff18b0d98a37d5e6ad47f09603da0ac3575f8baad480183799cf3a
Contents?: true
Size: 426 Bytes
Versions: 2
Compression:
Stored size: 426 Bytes
Contents
module Scrivito module Backend module Index IMPLEMENTATIONS = [ Backend::PathIndex, Backend::ParentPathIndex, Backend::PermalinkIndex, ].freeze IMPLEMENTATION_BY_NAME = IMPLEMENTATIONS.inject({}) do |result, index| result.merge(index.id => index) end def self.by_name(name) IMPLEMENTATION_BY_NAME[name.to_s] or raise Scrivito::InternalError, "unknown index #{name}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-1.18.0 | app/cms/scrivito/backend/index.rb |
scrivito_sdk-1.18.0.rc1 | app/cms/scrivito/backend/index.rb |