lib/blind_index/model.rb in blind_index-2.0.0 vs lib/blind_index/model.rb in blind_index-2.0.1
- old
+ new
@@ -63,10 +63,10 @@
define_singleton_method class_method_name do |value|
BlindIndex.generate_bidx(value, **blind_indexes[name])
end
define_method method_name do
- self.send("#{bidx_attribute}=", self.class.send(class_method_name, send(attribute)))
+ send("#{bidx_attribute}=", self.class.send(class_method_name, send(attribute)))
end
if callback
activerecord = defined?(ActiveRecord) && self < ActiveRecord::Base