Paramètre rajouté au flux rss

This commit is contained in:
echarp 2014-01-02 00:28:11 +01:00
parent bd2dca40c8
commit 21635d2ca4

View File

@ -6,9 +6,7 @@ class EventsController < InheritedResources::Base
if (params[:region] && params[:region].present? && params[:region] != 'all')
@events = @events.region(params[:region])
end
if (params[:tag])
@events = @events.tag(params[:tag])
end
@events = @events.tag(params[:tag]) if (params[:tag])
respond_to do |format|
format.html {
@ -21,7 +19,8 @@ class EventsController < InheritedResources::Base
}
format.rss {
@events = @events.future.limit(25)
@events = @events.future
@events = @events.limit params[:daylimit] if params[:daylimit]
}
end
end