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

Use Tire::Model::Import:Strategy in rake task #936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hallelujah
Copy link

This allows to import scoped documents in mongoid 3.x

rake environment tire:import:model CLASS='Article.where(published: true)'

Without it it will import all Article because of Mongoid::Criteria#tire is
proxied to Article::tire

This allows to import scoped documents in mongoid 3.x

    rake environment tire:import:model CLASS='Article.where(published: true)'

Without it it will import all Article because of Mongoid::Criteria#tire is proxied to Article::tire
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant