Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #158 from Lauri/sequel_string_tables

Sequel returns table names as symbols, DatabaseCleaner expects strings
  • Loading branch information...
commit d1e2dc973ee6f181a12a50ec0eef66f8ef7a067d 2 parents 8aa8526 + 1517551
@bmabey bmabey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/database_cleaner/sequel/truncation.rb
View
2  lib/database_cleaner/sequel/truncation.rb
@@ -35,7 +35,7 @@ def each_table
private
def tables_to_truncate(db)
- (@only || db.tables) - @tables_to_exclude
+ (@only || db.tables.map(&:to_s)) - @tables_to_exclude
end
# overwritten
Please sign in to comment.
Something went wrong with that request. Please try again.