mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Remove unnecessary string manipulation
This commit is contained in:
parent
1e0f1bd611
commit
359f615bf7
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ class TodosController < ApplicationController
|
|||
@todo = current_user.todos.find(params[:id])
|
||||
@original_item_context_id = @todo.context_id
|
||||
@original_item = current_user.todos.build(@todo.attributes) # create a (unsaved) copy of the original todo
|
||||
@context = current_user.contexts.find(params[:todo][:context_id].sub! 'c', '')
|
||||
@context = current_user.contexts.find(params[:todo][:context_id])
|
||||
@todo.context = @context
|
||||
@saved = @todo.save
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue