Sha256: 8de5941d12343426cbc92d37ba35b1d2fbf8c0db807664883f479738b0746bec
Contents?: true
Size: 908 Bytes
Versions: 22
Compression:
Stored size: 908 Bytes
Contents
module RailsConnector # # This class provides a default controller implementation for rendering an RSS feed. # It should be customized by subclassing. # # The RSS feature assumes that you have a root object specified whose direct children will be used as feed entries. # # Specify the RSS root in # <code><em>RAILS_ROOT</em>/config/initializers/rails_connector.rb</code>: # RailsConnector::Configuration::Rss.root = lambda { NamedLink.get_object('news') } # @api public class DefaultRssController < DefaultCmsController # # This action renders the built-in RSS feed. # # To customize feed's layout, override either this method, or the apropriate view. # # @return [void] # @api public def index respond_to do |format| format.rss end end protected def load_object @obj = Configuration::Rss.root end end end
Version data entries
22 entries across 22 versions & 1 rubygems