Change #clone into #dup, needed for AR >= 3.1!

This commit is contained in:
Paul van Tilburg 2013-06-16 22:43:58 +02:00
parent f034196469
commit 05b2fff118

View file

@ -1012,7 +1012,7 @@ module StopTime::Controllers
tasks.each_key do |task|
# Create a new (billed) task clone that contains the selected time
# entries, leave the rest unbilled and associated with their task.
bill_task = task.clone # FIXME: depends on rails version!
bill_task = task.dup # FIXME: depends on rails version!
task.time_entries = task.time_entries - tasks[task]
task.save
bill_task.time_entries = tasks[task]