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