{"action":"opened","issue":{"url":"https://api.github.com/repos/algolia/algoliasearch-rails/issues/87","labels_url":"https://api.github.com/repos/algolia/algoliasearch-rails/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-rails/issues/87/comments","events_url":"https://api.github.com/repos/algolia/algoliasearch-rails/issues/87/events","html_url":"https://github.com/algolia/algoliasearch-rails/issues/87","id":113543591,"number":87,"title":"Can't remove_from_index after destroying from console","user":{"login":"chrisyeung1121","id":3488583,"avatar_url":"https://avatars.githubusercontent.com/u/3488583?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisyeung1121","html_url":"https://github.com/chrisyeung1121","followers_url":"https://api.github.com/users/chrisyeung1121/followers","following_url":"https://api.github.com/users/chrisyeung1121/following{/other_user}","gists_url":"https://api.github.com/users/chrisyeung1121/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisyeung1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisyeung1121/subscriptions","organizations_url":"https://api.github.com/users/chrisyeung1121/orgs","repos_url":"https://api.github.com/users/chrisyeung1121/repos","events_url":"https://api.github.com/users/chrisyeung1121/events{/privacy}","received_events_url":"https://api.github.com/users/chrisyeung1121/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T09:41:28Z","updated_at":"2015-10-27T09:41:28Z","closed_at":null,"body":"``` ruby\r\nmodule Algolia\r\n\tclass RequestIndexWorker\r\n\t\tinclude Sidekiq::Worker\r\n\t\tsidekiq_options :retry => false, :queue => :algolia\r\n\r\n\t\t# use .destroy rather than .delete if you want to trigger remove_from_index! method\r\n\r\n\t\tdef perform(reference, remove)\r\n\t\t\tr = Request.find_by_reference(reference)\r\n\t\t\tremove ? r.remove_from_index! : r.index!\r\n\t\tend\r\n\r\n\tend\r\nend\r\n``` \r\n\r\nAnd whenever I do `destroy` in console it will have an error message\r\n\r\n2015-10-27T09:09:33.432Z 71962 TID-owwqrc480 WARN: undefined method `remove_from_index!' for nil:NilClass\r\n\r\ni assume basically the record is already deleted?"}}