From 0f39034986030e81355d212f8d72a32fd232dee9 Mon Sep 17 00:00:00 2001 From: Sebastian Fischmeister Date: Fri, 24 Feb 2012 16:46:11 -0500 Subject: [PATCH] removed whitespaces and matched the style with the todo_controller.rb (unless) --- app/controllers/projects_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 2cfe530d..2adea3c9 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -97,9 +97,9 @@ class ProjectsController < ApplicationController @done = {} @done = @project.todos.find_in_state(:all, :completed, - :order => "todos.completed_at DESC", - :limit => current_user.prefs.show_number_completed, - :include => Todo::DEFAULT_INCLUDES) if current_user.prefs.show_number_completed > 0 + :order => "todos.completed_at DESC", + :limit => current_user.prefs.show_number_completed, + :include => Todo::DEFAULT_INCLUDES) unless current_user.prefs.show_number_completed == 0 @count = @not_done.size @down_count = @count + @deferred.size + @pending.size