From 98587fa68004fede84b3847bcdd15716b52a3ceb Mon Sep 17 00:00:00 2001 From: himrock922 Date: Fri, 15 Apr 2022 12:02:18 +0900 Subject: [PATCH] require attr_encrypted URL: https://guides.rubyonrails.org/autoloading_and_reloading_constants.html --- lib/attr_encrypted/adapters/active_record.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/attr_encrypted/adapters/active_record.rb b/lib/attr_encrypted/adapters/active_record.rb index fca9343e..a2c95e9c 100644 --- a/lib/attr_encrypted/adapters/active_record.rb +++ b/lib/attr_encrypted/adapters/active_record.rb @@ -1,5 +1,8 @@ # frozen_string_literal: true +require 'attr_encrypted' +require 'attr_encrypted/adapters/active_record' + if defined?(ActiveRecord::Base) module AttrEncrypted module Adapters