Sha256: 37d6c727ccd853a14e9f11cad458b4a71d4ebffc208f512cdafaf93324fd3b49
Contents?: true
Size: 384 Bytes
Versions: 24
Compression:
Stored size: 384 Bytes
Contents
# # A support module for handling detecting if a page or controller is being # served by the public or cms domain. # module Cms module DomainSupport protected def cms_domain_prefix "cms" end def cms_site? subdomains = request.subdomains subdomains.shift if subdomains.first == "www" subdomains.first == cms_domain_prefix end end end
Version data entries
24 entries across 24 versions & 5 rubygems