Sha256: 02c138b46ec0e84d1b5d6a3c7cbd8721edcf152ea5aff328d6790a6d59dcb7b2
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
class RssController < ApplicationController layout nil caches_page :feed def feed if @params['user'] @title = @user.title @subtitle = @user.subtitle @posts = @user.posts.find_all(nil, 'created_at desc', @app_config['main']['num_posts']) rescue [] else @posts = Post.find_all(nil, 'updated_at DESC', @app_config['main']['num_posts']) @title = @app_config['main']['title'] @subtitle = @app_config['main']['subtitle'] end #cache_page if ActionController::Base.perform_caching end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
EliteJournal-1.9.480 | app/controllers/rss_controller.rb |
EliteJournal-1.9.492 | app/controllers/rss_controller.rb |