Skip to content

Commit 44bb329

Browse files
authored
use to_prepare for Rails 2
1 parent 3fc1fdb commit 44bb329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/attr_encrypted/adapters/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def method_missing_with_attr_encrypted(method, *args, &block)
133133
end
134134
end
135135

136-
ActiveSupport.on_load(:active_record) do
136+
Rails.configuration.to_prepare do
137137
extend AttrEncrypted
138138
extend AttrEncrypted::Adapters::ActiveRecord
139139
end

0 commit comments

Comments
 (0)