lib/indexes/index.rb in indexes-4.0.0.1 vs lib/indexes/index.rb in indexes-4.0.0.2

- old
+ new

@@ -135,14 +135,12 @@ Dsl::Serialization.new(record, &options[:serialization]).to_h end def indexify_model index = self - model.class_eval do - include Indexes::Concern - define_singleton_method :index do - index - end + model.include Indexes::Concern + model.define_singleton_method :index do + index end end end end