application.rb_1307.diff

diff for app/controllers/application.rb (revision 1307) - Thomas Löber, 2008-03-29 23:16

Download (582 Bytes)

View differences:

app/controllers/application.rb (working copy)
150 150
  def render_feed(items, options={})    
151 151
    @items = items || []
152 152
    @items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
153
    @items = @items.slice(0, Setting.feeds_limit.to_i)
153 154
    @title = options[:title] || Setting.app_title
154 155
    render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml'
155 156
  end