Module: Tinia::Index
- Defined in:
- lib/tinia/index.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/tinia/index.rb', line 4 def self.included(klass) klass.send(:include, InstanceMethods) klass.send(:extend, ClassMethods) klass.class_eval do cattr_accessor :in_cloud_search_batch_documents self.in_cloud_search_batch_documents = false # set up our callbacks after_save(:add_to_cloud_search) after_destroy(:delete_from_cloud_search) end end |