You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: