mauriciozaffari/mongoid_search — pull request #80 by matiasanaya (2014-04-14 22:23:45+00:00)
Title: Update :search_fields to class_attribute instead of cattr_accessor

This change is relevant if you use inheritance in your models. With cattr_accessor, sub-classes invocation of search_in will overwrite the base class search_fields. With class_attribtue and cloning the array when setting it, this is avoided.