Module: Pageflow::SitesHelper

Defined in:
app/helpers/pageflow/sites_helper.rb

Constant Summary collapse

DEFAULT_PUBLIC_ENTRY_OPTIONS =
lambda do |site|
  site.cname.present? ? {host: site.cname} : nil
end

Instance Method Summary collapse

Instance Method Details

#pretty_site_url(site) ⇒ Object



7
8
9
# File 'app/helpers/pageflow/sites_helper.rb', line 7

def pretty_site_url(site)
  pageflow.public_root_url(Pageflow.config.site_url_options(site))
end