Right now the repetitions are hardcoded:
|
if todo.action == 'prepare_notes' |
|
[10, 30, 60].each do |offset| |
|
Todo.create( |
|
user: user, |
|
book: todo.book, |
|
action: 'review', |
|
due_date: Date.today + offset.days |
|
) |
|
end |
It'd be nice if the user were able to change the number of repetitions and duration of intervals.
Right now the repetitions are hardcoded:
books/app/controllers/todos_controller.rb
Lines 33 to 41 in 2d0bc9f
It'd be nice if the user were able to change the number of repetitions and duration of intervals.