Skip to content

Commit

Permalink
Fix Mysql2Adapter superclass.
Browse files Browse the repository at this point in the history
  • Loading branch information
jviney committed Jan 27, 2012
1 parent e48e3d4 commit b126b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database_cleaner/active_record/deletion.rb
Expand Up @@ -15,7 +15,7 @@ def delete_table(table_name)
end
end

class Mysql2Adapter < AbstractAdapter
class Mysql2Adapter < MYSQL2_ADAPTER_PARENT
def delete_table(table_name)

This comment has been minimized.

Copy link
@bagilevi

bagilevi Feb 6, 2012

wouldn't Mysql2Adapter.class_eval be nicer?

execute("DELETE FROM #{quote_table_name(table_name)};")
end
Expand Down

1 comment on commit b126b77

@bmabey
Copy link
Contributor

@bmabey bmabey commented on b126b77 Feb 6, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is a patch by @jviney that does just that but the specs are not passing yet: #95

While the specs are failing it is really more of a false-negative so I'd like to see that patch merged in once the spec issue has been solved some way.

Please sign in to comment.