avatar

21

more silly bug fixes, i need to learn how to use branches for this :-/

by abloke, 01 Feb, 2007 04:18 PM
20 21  
6161   def self.build_sql_conditional_for(options={})
6262     conditions = []
6363     options.each do |key, value|
64       conditional = decide_conditional(option)
65       conditions << self.send(:sanitize_sql, ["#{option.key.to_s}_id #{conditional} ?", option.value])
64       conditional = decide_conditional(value)
65       conditions << self.send(:sanitize_sql, ["#{key.to_s}_id #{conditional} ?", value])
6666     end
6767     return conditions
6868   end