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

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

Open
hallelujah wants to merge 1 commit intokarmi:masterfrom
hallelujah:master
Open

Use Tire::Model::Import:Strategy in rake task#936
hallelujah wants to merge 1 commit intokarmi:masterfrom
hallelujah:master

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