Sha256: fd3efa17fc3f3bc16daf0b4dcc91f26f7d8b5c997fb9a36c9dd2674d4236e46d

Contents?: true

Size: 270 Bytes

Versions: 8

Compression:

Stored size: 270 Bytes

Contents

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/helpers/pageflow/sites_helper.rb
pageflow-17.0.3 app/helpers/pageflow/sites_helper.rb
pageflow-17.0.2 app/helpers/pageflow/sites_helper.rb
pageflow-17.0.1 app/helpers/pageflow/sites_helper.rb
pageflow-17.0.0 app/helpers/pageflow/sites_helper.rb
pageflow-16.2.0 app/helpers/pageflow/sites_helper.rb
pageflow-16.1.0 app/helpers/pageflow/sites_helper.rb
pageflow-16.0.0 app/helpers/pageflow/sites_helper.rb