Sha256: 77cd3686fde7d9f707a9c0528a2f43c0899bf3f42899986ecad5ce4ff3219ec4
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 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) conditions = { k(:domains, :in) => [*domain] } first { where(conditions) } 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
6 entries across 6 versions & 1 rubygems