module ElasticQueue::Queueable
Public Instance Methods
index_for_queues()
click to toggle source
# File lib/elastic_queue/queueable.rb, line 49 def index_for_queues self.class.queue_classes.each { |q| q.send(:upsert_model, self) } end
indexed_for_queue()
click to toggle source
# File lib/elastic_queue/queueable.rb, line 39 def indexed_for_queue index = { id: id, model: self.class.to_s.underscore } self.class.all_queue_attributes.each do |attr| val = send(attr) val = val.to_s(:db) if val.is_a? Date index[attr] = val end index end
remove_from_queue_indices()
click to toggle source
# File lib/elastic_queue/queueable.rb, line 53 def remove_from_queue_indices self.class.queue_classes.each { |q| q.send(:remove_model, self) } end