Permalink
Browse files

Fix active scope

  • Loading branch information...
1 parent 317e895 commit 026221a15031e53134b3050b1b216fd46e33b3d4 Chris Chan committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/project.rb
View
2 app/models/project.rb
@@ -6,7 +6,7 @@ class Project < ActiveRecord::Base
named_scope :alphabetical, :order => "title ASC"
named_scope :active, lambda {
- {:order => ["updated_at >= ?", 1.week.ago]}
+ {:conditions => ["updated_at >= ?", 1.week.ago]}
}
DISABLED_PROJECT_FORM_VALUE = -1

0 comments on commit 026221a

Please sign in to comment.