Closed struan closed 8 years ago
The of_class method returns an array at the moment instead of a collection which means that where etc do not work on it.
of_class
where
of_class should return a collection.
popolo.elections.where works.
popolo.elections.where
This is required for https://github.com/everypolitician/everypolitician/issues/529
Problem
The
of_class
method returns an array at the moment instead of a collection which means thatwhere
etc do not work on it.Proposed Solution
of_class
should return a collection.Acceptance Criteria
popolo.elections.where
works.Not Required
Prerequisites
Related Issues
This is required for https://github.com/everypolitician/everypolitician/issues/529