app/models/user.rb
#called after the user has been destroyed
#delete all user maps
called after the user has been destroyed
delete all user maps
called after the user has been destroyed delete all user maps
def delete_maps
    own_maps.each do | map |
      logger.debug "deleting map #{map.inspect}"
      map.destroy
    end
  end
def delete_maps own_maps . each do | map | logger . debug "deleting map #{map.inspect}" map . destroy end end
called after the user has been destroyed
delete all user maps
called after the user has been destroyed delete all user maps