lib/mongoid/attributes/processing.rb
# If the key provided is the name of an association or a nested attribute, we
# need to wait until all other attributes are set before processing
# these.
#
# @example Is the attribute pending?
#   document.pending_attribute?(:name, "Durran")
#
# @param [ Symbol ] key The name of the attribute.
# @param [ Object ] value The value of the attribute.
#
# @return [ true, false ] True if pending, false if not.
If the key provided is the name of an association or a nested attribute, we
need to wait until all other attributes are set before processing
these.
If the key provided is the name of an association or a nested attribute we need to wait until all other attributes are set before processing these .
def pending_attribute?(key, value)
        name = key.to_s
        aliased = if aliased_associations.key?(name)
          aliased_associations[name]
        else
          name
        end
        if relations.has_key?(aliased)
          pending_relations[name] = value
          return true
        end
        if nested_attributes.has_key?(aliased)
          pending_nested[name] = value
          return true
        end
        return false
      end
def pending_attribute? ( key , value ) name = key . to_s aliased = if aliased_associations . key? ( name ) aliased_associations [ name ] else name end if relations . has_key? ( aliased ) pending_relations [ name ] = value return true end if nested_attributes . has_key? ( aliased ) pending_nested [ name ] = value return true end return false end
If the key provided is the name of an association or a nested attribute, we
need to wait until all other attributes are set before processing
these.
If the key provided is the name of an association or a nested attribute we need to wait until all other attributes are set before processing these .
True if pending, false if not.
True if pending false if not .
 true, false 
key
<not_specific>
value
<not_specific>
<not_specific>
value The value of the attribute.
value The value of the attribute .
example
None