Fix "undefined method `reverse' for nil:NilClass"
Fix "undefined method `reverse' for nil:NilClass"

AFAICT, it isn't safe to call arel.to_sql for insert statements.  Once ActiveRecord has set up its BindSubstitution visitor, the bind values must always be present, so you must go via DatabaseStatements#to_sql(arel,binds)
nesquena/query_reviewer,nesquena/query_reviewer