Class: Locomotive::Steam::Middlewares::Sitemap
- Inherits:
-
ThreadSafe
- Object
- ThreadSafe
- Locomotive::Steam::Middlewares::Sitemap
- Includes:
- Concerns::Helpers
- Defined in:
- lib/locomotive/steam/middlewares/sitemap.rb
Constant Summary
Constants included from Concerns::Helpers
Concerns::Helpers::CACHE_HEADERS, Concerns::Helpers::HTML_CONTENT_TYPE, Concerns::Helpers::HTML_MIME_TYPES
Instance Attribute Summary
Attributes inherited from ThreadSafe
Instance Method Summary collapse
Methods included from Concerns::Helpers
#html?, #inject_cookies, #json?, #log, #make_local_path, #modify_path, #mounted_on, #redirect_to, #render_response
Methods inherited from ThreadSafe
#call, #decorate_entry, #default_liquid_context, #default_locale, #liquid_assigns, #live_editing?, #locale, #locales, #merge_with_params, #next, #page, #params, #path, #request, #services, #session, #site
Instance Method Details
#_call ⇒ Object
8 9 10 11 12 |
# File 'lib/locomotive/steam/middlewares/sitemap.rb', line 8 def _call if env['PATH_INFO'] == '/sitemap.xml' && (page.nil? || page.not_found?) render_response(build_xml, 200, 'text/plain') end end |