Bugfix: active_contexts wasn't actually working.

This commit is contained in:
Eric Allen 2008-09-21 09:30:25 -07:00
parent 2fda252378
commit 3006f73cb7
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class User < ActiveRecord::Base
has_many :active_contexts,
:class_name => 'Context',
:order => 'position ASC',
:conditions => [ 'hide = ?', 'true' ]
:conditions => [ 'hide = ?', false ]
has_many :todos,
:order => 'todos.completed_at DESC, todos.created_at DESC',
:dependent => :delete_all