Paramètre rajouté au flux rss
This commit is contained in:
parent
bd2dca40c8
commit
21635d2ca4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user