Commit f62b62025d85e390609cdd5c2ece39d951ae837b
1 parent
92c86d62
Exists in
master
and in
21 other branches
Removed hack
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
lib/searchkick/index.rb
... | ... | @@ -79,12 +79,7 @@ module Searchkick |
79 | 79 | source = record.search_data |
80 | 80 | |
81 | 81 | # stringify fields |
82 | - source = source.inject({}){|memo,(k,v)| memo[k.to_s] = v; memo} | |
83 | - | |
84 | - # Mongoid 4 hack | |
85 | - if defined?(BSON::ObjectId) and source["_id"].is_a?(BSON::ObjectId) | |
86 | - source["_id"] = source["_id"].to_s | |
87 | - end | |
82 | + source = source.inject({}){|memo,(k,v)| memo[k.to_s] = v; memo}.except("id", "_id") | |
88 | 83 | |
89 | 84 | options = record.class.searchkick_options |
90 | 85 | ... | ... |