Mysql2::Error: Commands out of sync; you can't run this command now: call dummyProc();
ActiveRecord::StatementInvalid: Mysql2::Error: Commands out of sync; you can't run this command now: call dummyProc();
from /home/okuno/workspace/QRapi/vendor/bundler/ruby/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:
class ActiveRecord::Base
def self.use_connection( &block )
begin
block.call(self.connection)
ensure
self.connection.reconnect! unless connection.active?
end
end
end