Skip to content

Commit

Permalink
Test: 看是否是before destroy callback导致了删除失败
Browse files Browse the repository at this point in the history
  • Loading branch information
nowa committed Oct 23, 2011
1 parent 71cb680 commit c2119a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/redis/search/base.rb
Expand Up @@ -51,6 +51,7 @@ def redis_search_index_create
before_destroy :redis_search_index_destroy
def redis_search_index_destroy
Search::Index.remove(:id => self.id, :title => self.#{title_field}, :type => self.class.to_s)
true
end
def redis_search_index_need_reindex
Expand Down

0 comments on commit c2119a1

Please sign in to comment.