uninitialized constant CompositePrimaryKeys::ActiveRecord::Batches::BatchEnumerator
Closed this issue · 2 comments
jasonkarns commented
The Batches module in CPK references a non-existent constant. BatchEnumerator
is not defined in the CPK gem.
NameError:
uninitialized constant CompositePrimaryKeys::ActiveRecord::Batches::BatchEnumerator
# /usr/local/share/gem/gems/composite_primary_keys-12.0.3/lib/composite_primary_keys/relation/batches.rb:7:in `in_batches'
I've temporarily worked around this issue with: CompositePrimaryKeys::ActiveRecord::Batches::BatchEnumerator = ActiveRecord::Batches::BatchEnumerator
cfis commented
Thanks for the report. Its not so easy triggering that code - but I added a test and pushed a fix.
jasonkarns commented
Awesome, thanks @cfis !!