I am reading the documentation for the Tire gem and I am a confused about what it mean by the following paragraphs. Could someone explain it?
In fact, all this time you've been using only proxies to the real Tire methods, which live in the tire class and instance methods of your model. Only when not trampling on someone's foot — which is the majority of cases — will Tire bring its methods to the namespace of your class.
So, instead of writing
Article.search
, you could writeArticle.tire.search
, and instead of@article.update_index
you could write@article.tire.update_index
, to be on the safe side. Let's have a look on an example with the mapping method: