lib/blind_index.rb in blind_index-2.3.1 vs lib/blind_index.rb in blind_index-2.3.2
- old
+ new
@@ -4,14 +4,14 @@
# stdlib
require "openssl"
# modules
-require "blind_index/backfill"
-require "blind_index/key_generator"
-require "blind_index/model"
-require "blind_index/version"
+require_relative "blind_index/backfill"
+require_relative "blind_index/key_generator"
+require_relative "blind_index/model"
+require_relative "blind_index/version"
module BlindIndex
class Error < StandardError; end
class << self
@@ -135,20 +135,20 @@
Backfill.new(relation, columns: columns, batch_size: batch_size).perform
end
end
ActiveSupport.on_load(:active_record) do
- require "blind_index/extensions"
+ require_relative "blind_index/extensions"
extend BlindIndex::Model
ActiveRecord::TableMetadata.prepend(BlindIndex::Extensions::TableMetadata)
ActiveRecord::DynamicMatchers::Method.prepend(BlindIndex::Extensions::DynamicMatchers)
ActiveRecord::Validations::UniquenessValidator.prepend(BlindIndex::Extensions::UniquenessValidator)
ActiveRecord::PredicateBuilder.prepend(BlindIndex::Extensions::PredicateBuilder)
end
ActiveSupport.on_load(:mongoid) do
- require "blind_index/mongoid"
+ require_relative "blind_index/mongoid"
Mongoid::Document::ClassMethods.include(BlindIndex::Model)
Mongoid::Criteria.prepend(BlindIndex::Mongoid::Criteria)
Mongoid::Validatable::UniquenessValidator.prepend(BlindIndex::Mongoid::UniquenessValidator)
end