class Locomotive::Steam::SiteRepository
Public Instance Methods
by_domain(domain)
click to toggle source
# File lib/locomotive/steam/repositories/site_repository.rb, line 13 def by_domain(domain) first { where(k(:domains, :in) => [*domain]) } end
by_handle_or_domain(handle, domain)
click to toggle source
# File lib/locomotive/steam/repositories/site_repository.rb, line 17 def by_handle_or_domain(handle, domain) if handle.nil? by_domain(domain) else first { where(handle: handle) } end end