mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 06:02:36 +01:00
Freeze to rails 1.1.5. The only change I needed to make for compatibility was to ApplicationController#init_not_done_counts
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@306 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
45739e12de
commit
a36b736c6a
74 changed files with 1064 additions and 535 deletions
|
|
@ -90,8 +90,8 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def init_not_done_counts(parents = ['project','context'])
|
||||
parents.each {|parent|
|
||||
eval("@#{parent}_not_done_counts = Todo.count(:todo,
|
||||
:conditions => ['todos.user_id = ? and todos.type = ? and todos.done = ?', @user.id, \"Immediate\", false],
|
||||
eval("@#{parent}_not_done_counts = Todo.count(:all,
|
||||
:conditions => ['user_id = ? and type = ? and done = ?', @user.id, \"Immediate\", false],
|
||||
:group => :#{parent}_id)")
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue