I have a model named Article in my Rails 3, and I use rake environment tire:import CLASS='Article' FORCE=true to do index. But I only want the articles with field deleted equals to false be indexed. How can I implement it?
I have a model named Article in my Rails 3, and I use rake
Share
You can use the scoped method.
Reference: Answered by karmi @ https://github.com/karmi/tire/issues/458