test/models.rb in mongoid_ext-0.6.1 vs test/models.rb in mongoid_ext-0.6.2
- old
+ new
@@ -1,4 +1,13 @@
+class CreditCard # for encryptor
+ include Mongoid::Document
+ include MongoidExt::Encryptor
+
+ encrypted_field :number, :type => Integer, :key => "my password"
+ encrypted_field :data, :type => Hash, :key => "my password"
+ encrypted_field :extra, :key => "my password"
+end
+
class Event # for safe_update, and Timestamp
include Mongoid::Document
field :start_date, :type => Timestamp