allow results to be specified as a feed index parameter

This commit is contained in:
ioBridge 2011-04-05 16:31:07 -04:00
parent 4f09687a55
commit 12917fd868

View File

@ -10,6 +10,9 @@ class FeedController < ApplicationController
# set timezone correctly
set_time_zone(params)
# set limits
limit = params[:results].to_i if params[:results]
# check for access
if @success
@ -22,7 +25,8 @@ class FeedController < ApplicationController
:all,
:conditions => { :channel_id => channel.id, :created_at => get_date_range(params) },
:select => select_options,
:order => 'created_at desc'
:order => 'created_at desc',
:limit => limit
)
# if a feed has data