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

Version Path
infopark_rails_connector-6.8.3.174.51542603 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.3.115.227021242 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.3.73.75172665 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.3.2.153416031 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.3.67.110847540 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.3.1.23895778 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.2.36.82613853 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.2.7.128454143 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.1.26.236500544 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.1 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.539.93842523 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.529.114081979 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.518.30999728 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.515.34928522 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.498.46559598 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.480.261594408 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.444.171626367 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.406.131718077 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.356.19698103 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.348.160665197 app/controllers/rails_connector/default_rss_controller.rb