def indexed_with_cloud_search(&block)
      mods = [
        Tinia::Connection,
        Tinia::Index,
        Tinia::Search
      ]
      mods.each do |mod|
        unless self.included_modules.include?(mod)
          self.send(:include, mod) 
        end
      end
      # config block
      yield(self) if block_given?

      # ensure config is all set
      unless self.cloud_search_domain.present?
        raise Tinia::MissingSearchDomain.new(self)
      end
    end
def indexed_with_cloud_search(&block)
      mods = [
        Tinia::Connection,
        Tinia::Index,
        Tinia::Search
      ]
      mods.each do |mod|
        unless self.included_modules.include?(mod)
          self.send(:include, mod) 
        end
      end
      # config block
      yield(self) if block_given?

      # ensure config is all set
      unless self.cloud_search_domain.present?
        raise Tinia::MissingSearchDomain.new(self)
      end
    end
activation method for an AR class