Module: Xing::Snapshot::DomainHelpers
- Included in:
- SitePageSet, Sitemap
- Defined in:
- lib/xing/snapshot/domain_helpers.rb
Instance Method Summary collapse
Instance Method Details
#domain(url = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/xing/snapshot/domain_helpers.rb', line 4 def domain(url = nil) if url url elsif defined? Rails.application.secrets.sitemap_base_url Rails.application.secrets.sitemap_base_url else raise "No Domain is set for the sitemap. Please set it in secrets.yml." end end |
#page_frontend_url(path) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/xing/snapshot/domain_helpers.rb', line 14 def page_frontend_url(path) if PAGES_FRONTEND_URL.present? PAGES_FRONTEND_URL + "/" + path else path end end |