Sha256: 4449475cc24841568731475c2ecf2706ef2acbc06f938b915583e210ef03de45
Contents?: true
Size: 548 Bytes
Versions: 17
Compression:
Stored size: 548 Bytes
Contents
module Locomotive module Steam class SiteRepository include Models::Repository # Entity mapping mapping :sites, entity: Site do localized_attributes :seo_title, :meta_description, :meta_keywords, :sections_content end def by_domain(domain) first { where(k(:domains, :in) => [*domain]) } end def by_handle_or_domain(handle, domain) if handle.nil? by_domain(domain) else first { where(handle: handle) } end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems