Sha256: 6e68c73e8c60c66d100f6e416f99fe64c6a2c50606ad52b5bb4977fb4ff5705f
Contents?: true
Size: 863 Bytes
Versions: 21
Compression:
Stored size: 863 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') } class DefaultRssController < DefaultCmsController # # This action renders the built-in RSS feed. # # To customize feed's layout, override either this method, or the apropriate view. # def index respond_to do |format| format.rss end end protected def load_object # :nodoc: @obj = Configuration::Rss.root end end end
Version data entries
21 entries across 21 versions & 1 rubygems