yaml_db only worked for me after converting the query object to a SQL string

Trying to export from sqlite3 I was getting this error:

TypeError: can't convert Arel::SelectManager into String: #<Arel::SelectManager:0x000000039ee7d0>

with this on the stack:

yaml_db-0.2.3/lib/serialization_helper.rb:185:in `block in each_table_page'

and this change fixed it for me.