class Mongoid::EncryptedDate
Public Class Methods
convert(object)
click to toggle source
# File lib/mongoid-encrypted-fields/fields/encrypted_date.rb, line 27 def convert(object) from_date(object.to_datetime) end
from_date(date)
click to toggle source
# File lib/mongoid-encrypted-fields/fields/encrypted_date.rb, line 23 def from_date(date) parse(date.to_s) end