Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

not compatible with Rails 4.1 #961

Open
anilmaurya opened this issue Apr 25, 2014 · 1 comment
Open

not compatible with Rails 4.1 #961

anilmaurya opened this issue Apr 25, 2014 · 1 comment

Comments

@anilmaurya
Copy link

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

@karmi
Copy link
Owner

karmi commented Apr 25, 2014

Hi, yeah, it uses the old Hash syntax. As well stated in various places, Tire should be considered a "retired" project. The new gems provide (almost) all the features, and new features are added to them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants