8000 not compatible with Rails 4.1 · Issue #961 · karmi/retire · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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.
not compatible with Rails 4.1 #961
Open
@anilmaurya

Description

@anilmaurya

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0