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

Version Path
infopark_rails_connector-6.8.0.210.ed204b0 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.110.6570b45 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.72.d18d096 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.23.da7f96b app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.16.def5e85 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.15.a24f5ff app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.891.647580e app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.889.d503e42 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.883.f5f063b app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.884.4bd86e6 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.869.9609b39 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.856.8c0fec5 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.809.bdfa8c3 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.785.05d4af9 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.744.99f67fc app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.720.44fbabd app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.713.e5c3150 app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.681.7c84f4a app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.663.ceecdee app/controllers/rails_connector/default_rss_controller.rb
infopark_rails_connector-6.8.0.beta.200.650.7c93155 app/controllers/rails_connector/default_rss_controller.rb