fix #1164 and fix #1159 whre a localization was wrong and adding brackets at NOT sql statements for older MySQL versions

This commit is contained in:
Reinier Balt 2011-05-03 11:43:02 +02:00
parent 58641a2fd0
commit 7d5ca16044
3 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ class Project < ActiveRecord::Base
named_scope :active, :conditions => { :state => 'active' }
named_scope :hidden, :conditions => { :state => 'hidden' }
named_scope :completed, :conditions => { :state => 'completed'}
named_scope :uncompleted, :conditions => ["NOT state = ?", 'completed']
named_scope :uncompleted, :conditions => ["NOT(state = ?)", 'completed']
validates_presence_of :name
validates_length_of :name, :maximum => 255