Sha256: 634e50cd6527375f285f0f1a703961e496c5107eec41947c3d98c5e4ecfd9abd
Contents?: true
Size: 664 Bytes
Versions: 24
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true class ContentController < BaseController private # TODO: Make this work for all content. def auto_discovery_feed(options = {}) with_options(options.reverse_merge(only_path: true)) do |opts| @auto_discovery_url_rss = opts.url_for(format: "rss", only_path: false) @auto_discovery_url_atom = opts.url_for(format: "atom", only_path: false) end end def theme_layout this_blog.current_theme.layout(action_name) end def render_cached_xml(template, object) feed = cache([controller_name, template, object]) do render_to_string template, layout: false end render xml: feed end end
Version data entries
24 entries across 24 versions & 2 rubygems