nulldb/nulldb — pull request #35 by webgago (2013-06-17 14:15:16+00:00)
Title: NullObject should respond to #to_a and return empty Array

because you code may containt code like this:
ActiveRecord::Base.connection.execute(query).to_a.flatten.first