From 49886b1bd3bf585bed81882bc2e1b4bc8740d1e1 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Tue, 30 Apr 2013 23:01:46 -0500 Subject: [PATCH] Revert "Cache the project and context names" This reverts commit 610152b8ddf1e996c47047ce6f4d6c4576e7e800. --- app/controllers/todos/todo_create_params_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/todos/todo_create_params_helper.rb b/app/controllers/todos/todo_create_params_helper.rb index 59f29c88..c3ba490a 100644 --- a/app/controllers/todos/todo_create_params_helper.rb +++ b/app/controllers/todos/todo_create_params_helper.rb @@ -36,7 +36,7 @@ module Todos end def project_name - @project_name ||= @params['project_name'].strip if @params['project_name'] + @params['project_name'].strip unless @params['project_name'].nil? end def project_id @@ -44,7 +44,7 @@ module Todos end def context_name - @context_name ||= @params['context_name'].strip if @params['context_name'] + @params['context_name'].strip unless @params['context_name'].nil? end def context_id