lib/mini_sql/builder.rb in mini_sql-0.3 vs lib/mini_sql/builder.rb in mini_sql-1.0

- old
+ new

@@ -64,6 +64,16 @@ end end RUBY end + def query_decorator(decorator, hash_args = nil) + hash_args = @args.merge(hash_args) if hash_args && @args + hash_args ||= @args + if hash_args + @connection.query_decorator(decorator, to_sql, hash_args) + else + @connection.query_decorator(decorator, to_sql) + end + end + end