class Mongoid::EncryptedTime
Public Class Methods
convert(object)
click to toggle source
# File lib/mongoid-encrypted-fields/fields/encrypted_time.rb, line 27 def convert(object) from_time(object.to_time) end
from_time(time)
click to toggle source
# File lib/mongoid-encrypted-fields/fields/encrypted_time.rb, line 23 def from_time(time) parse(time.to_s) end