empty non-saved project caused rss builder to fail

This commit is contained in:
Reinier Balt 2013-05-13 12:50:10 +02:00
parent 54b106d96b
commit 80974fb0d5
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,6 @@ class ProjectsController < ApplicationController
else
@projects = current_user.projects
end
@new_project = current_user.projects.build
@active_projects = current_user.projects.active
@hidden_projects = current_user.projects.hidden
respond_to do |format|
@ -31,6 +30,7 @@ class ProjectsController < ApplicationController
@completed_count = current_user.projects.completed.count
@no_projects = current_user.projects.empty?
current_user.projects.cache_note_counts
@new_project = current_user.projects.build
end
format.m do
@completed_projects = current_user.projects.completed