Skip to content

Commit

Permalink
use to_prepare for Rails 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nightpool authored Jul 22, 2022
1 parent 3fc1fdb commit 44bb329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attr_encrypted/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def method_missing_with_attr_encrypted(method, *args, &block)
end
end

ActiveSupport.on_load(:active_record) do
Rails.configuration.to_prepare do
extend AttrEncrypted
extend AttrEncrypted::Adapters::ActiveRecord
end
Expand Down

0 comments on commit 44bb329

Please sign in to comment.