blob: 7d855956e2d03528ddd7e4d157349943517e41d7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
desc = 'Update discussion times for ageda items that are not assigned or assigned to current agenda'
namespace :management do
task :update_discussion_times => :environment do
current_items = Agenda.current.agenda_items
unassigned_items = AgendaItem.agenda_is(nil)
all_items = current_items + unassigned_items
all_items.each { |item| item.update_discussion_time }
end
end
|