mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Start major refactoring of recurring_todos. Started with creating new recurring todos.
All current and new tests pass
This commit is contained in:
parent
8e13059df1
commit
78c07d52b7
26 changed files with 1218 additions and 32 deletions
|
|
@ -1,5 +1,6 @@
|
|||
class TodoFromRecurringTodo
|
||||
attr_reader :user, :recurring_todo, :todo
|
||||
|
||||
def initialize(user, recurring_todo)
|
||||
@user = user
|
||||
@recurring_todo = recurring_todo
|
||||
|
|
@ -32,9 +33,9 @@ class TodoFromRecurringTodo
|
|||
def attributes
|
||||
{
|
||||
:description => recurring_todo.description,
|
||||
:notes => recurring_todo.notes,
|
||||
:project_id => recurring_todo.project_id,
|
||||
:context_id => recurring_todo.context_id
|
||||
:notes => recurring_todo.notes,
|
||||
:project_id => recurring_todo.project_id,
|
||||
:context_id => recurring_todo.context_id
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue