app/decorators/models/refinery/post_decorator.rb
# Posts should not remain indexed if draft attribute is set to True.
# Remove them on update if needed
Posts should not remain indexed if draft attribute is set to True.
Remove them on update if needed
Posts should not remain indexed if draft attribute is set to True . Remove them on update if needed
def handle_draft
        if !live? && respond_to?(:to_index)
          needs_update = !(previous_changes.keys.map(&:to_sym) && to_index.keys.map(&:to_sym)).empty?
          delete_document if needs_update
        end
      end
def handle_draft if ! live? && respond_to? ( :to_index ) needs_update = ! ( previous_changes . keys . map ( & :to_sym ) && to_index . keys . map ( & :to_sym ) ) . empty? delete_document if needs_update end end
Posts should not remain indexed if draft attribute is set to True.
Posts should not remain indexed if draft attribute is set to True .