With Rails 6.1.3.1 ActionView::Renderer::CollectionRenderer calls size method over collections. Adding the size method makes ActiveHash compatible with it.
This is the stacktrace from Rails after trying to render a collection of items (from ActiveHash, not an ActiveRecordRelation for example) in a view.
With Rails 6.1.3.1 ActionView::Renderer::CollectionRenderer calls
size
method over collections. Adding the size method makes ActiveHash compatible with it.This is the stacktrace from Rails after trying to render a collection of items (from ActiveHash, not an ActiveRecordRelation for example) in a view.