I was recently implementing a basic Elasticsearch integration with Sequel, and I wanted to save the record to Elasticsearch in an `after_commit` callback. However, inside it I don't know if a record has been destroyed, because in that case I need to remove it from the Elasticsearch index.
I think it would be really useful to mark a record as destroyed with an instance variable @destroyed (just like with @new), and also add a `#destroyed?` method, just like ActiveRecord has. What do you think? -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
