lib/lockbox.rb in lockbox-0.4.0 vs lib/lockbox.rb in lockbox-0.4.1
- old
+ new
@@ -91,6 +91,13 @@
end
def self.new(**options)
Encryptor.new(**options)
end
+
+ def self.encrypts_action_text_body(**options)
+ # runs every reload
+ ActiveSupport.on_load(:action_text_rich_text) do
+ ActionText::RichText.encrypts :body, **options
+ end
+ end
end