Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

mysql_adapter.rb redefines all_hashes multiple times under ruby 1.9

#3156

The instance_methods test in mysql_adapter.rb is not correct as ruby 1.9 returns symbols in instance_methods and not strings.

This simple patch adds an or condition to accept either:

return if target.instance_methods.include?('all_hashes') ||

        target.instance_methods.include?(:all_hashes)

Adding this patch prevents all_hashes being redefined each time a connection is made.

Reported by sds · September 7th, 2009 @ 11:31 AM

State: committed
Milestone: none
Assigned to: nobody
Importance: none