diff --git a/lib/smql_to_ar/condition_types.rb b/lib/smql_to_ar/condition_types.rb index 6061e62..1ab5b0f 100644 --- a/lib/smql_to_ar/condition_types.rb +++ b/lib/smql_to_ar/condition_types.rb @@ -229,7 +229,6 @@ class SmqlToAR super( *pars) @value = Array.wrap @value cols = {} - p self: self, cols: @cols @cols.each do |col| col_model = col.relation cols[col] = [col_model] + @value.collect {|val| ConditionTypes.try_parse( col_model, val) } @@ -250,7 +249,6 @@ class SmqlToAR b2 = 1 == sub.length ? builder : Or.new( builder) sub.each {|i| i.collect( &it.build( And.new( b2), t)); p 'or' => b2 } end - ap '=>' => builder self end end @@ -336,7 +334,6 @@ class SmqlToAR class < :parent def initialize parent, tmp = false - p init: self, parent: parent @parent = parent @parent.where self unless @parend.nil? && tmp end @@ -207,7 +205,6 @@ class SmqlToAR end def optimize! - p optimize: self ext = [] collect! do |sub| sub = sub.optimize! if sub.kind_of? Array @@ -220,8 +217,6 @@ class SmqlToAR sub end end.compact! - p optimized: self - p ext: ext push *ext self end