class ActiveMongoid::Associations::One
Public Instance Methods
==(other)
click to toggle source
# File lib/active_mongoid/associations/one.rb, line 13 def ==(other) return false unless other return true if target.object_id == other.object_id return true if target.attributes == other.attributes target == other end
clear()
click to toggle source
# File lib/active_mongoid/associations/one.rb, line 5 def clear target.delete end
respond_to?(name, include_private = false)
click to toggle source
Calls superclass method
# File lib/active_mongoid/associations/one.rb, line 9 def respond_to?(name, include_private = false) target.respond_to?(name, include_private) || super end