class Mongomatic::TypeConverters::ObjectId
Public Instance Methods
convert_orig_val()
click to toggle source
# File lib/mongomatic/type_converters.rb, line 138 def convert_orig_val ::BSON::ObjectId(@orig_val.to_s) rescue ::BSON::InvalidObjectId => e nil end
type_match?()
click to toggle source
# File lib/mongomatic/type_converters.rb, line 134 def type_match? @orig_val.kind_of? ::BSON::ObjectId end