lib/lockbox.rb in lockbox-0.6.4 vs lib/lockbox.rb in lockbox-0.6.5
- old
+ new
@@ -34,10 +34,10 @@
extend Lockbox::Model
extend Lockbox::Model::Attached
# alias_method is private in Ruby < 2.5
singleton_class.send(:alias_method, :encrypts, :lockbox_encrypts) if ActiveRecord::VERSION::MAJOR < 7
- ActiveRecord::Calculations.prepend Lockbox::Calculations
+ ActiveRecord::Relation.prepend Lockbox::Calculations
end
ActiveSupport.on_load(:mongoid) do
Mongoid::Document::ClassMethods.include(Lockbox::Model)
# alias_method is private in Ruby < 2.5