Skip to content

Commit 7eb1139

Browse files
author
Artūrs Mekšs
committed
Fix: primary key might be array (with composite_primary_keys gem)
1 parent 3faf06f commit 7eb1139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/annotate/annotate_models_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def mock_class(table_name, primary_key, columns)
88
options = {
99
:connection => mock("Conn", :indexes => []),
1010
:table_name => table_name,
11-
:primary_key => primary_key && primary_key.to_s,
11+
:primary_key => primary_key,
1212
:column_names => columns.map { |col| col.name.to_s },
1313
:columns => columns
1414
}

0 commit comments

Comments
 (0)