lib/utilrb/models/registration.rb
# Deregisters a set of submodels on this model and all its
# supermodels
#
# This is usually not called directly. Use #clear_submodels instead
#
# @param [ValueSet] set the set of submodels to remove
Deregisters a set of submodels on this model and all its
supermodels

This is usually not called directly.
Deregisters a set of submodels on this model and all its supermodels This is usually not called directly .
def deregister_submodels(set)
                current_size = submodels.size
                submodels.difference!(set.to_value_set)
                if (submodels.size != current_size)
                    if m = supermodel
                        m.deregister_submodels(set)
                    end
                    true
                else false
                end
            end
def deregister_submodels ( set ) current_size = submodels . size submodels . difference! ( set . to_value_set ) if ( submodels . size != current_size ) if m = supermodel m . deregister_submodels ( set ) end true else false end end
Deregisters a set of submodels on this model and all its
supermodels
Deregisters a set of submodels on this model and all its supermodels
set
<not_specific>
<not_specific>
set the set of submodels to remove
set the set of submodels to remove