An easier way to create where clauses.
Creates a class for easily building the where clauses for the Model.find(..., :conditions => condition )
c = InVisible::Cond.new do first "Jens-Christian" last "Fischer" age '>', 30 city 'like', 'Zur%' Adress.find( :all, :condition => c.where )
Adress.find_with_conditions( :all ) do first "Jens-Christian" last "Fischer" age '>', 30 city 'like', 'Zur%' end
This is based on the Where class, that Ezra Zygmuntowic sent to the rails mailing list on 2005-12-01 and includes all the wishes that came.
svn: http://invisible.ch/svn/projects/plugins/where
See also: Plugins