This repository was archived by the owner on Jun 30, 2018. It is now read-only.
This repository was archived by the owner on Jun 30, 2018. It is now read-only.
Open
Description
retire use find with conditions which is not not supported in Rails 4.1
As as workaround I had overwritten collection find_records in my app
module Tire
module Results
class Collection
def __find_records_by_ids(klass, ids)
@options[:load] === true ? klass.find(ids) : klass.includes(@options[:load][:include]).find(ids)
end
end
end
end
Metadata
Metadata
Assignees
Labels
No labels