lib/database_utils.rb
preallocate classes reads any class from the  @classes-Array and allocates adequat Ruby-Objects
preallocate classes reads any class from the  @classes-Array and allocates adequat Ruby-Objects
preallocate classes reads any class from the @classes - Array and allocates adequat Ruby - Objects
def preallocate_classes   from_model_dir= nil  
    ActiveOrient.database_classes.each do | db_name, the_class |
      allocate_class_in_ruby( db_name ) do |detected_class|
	keep_the_dataset =  true
	if !ActiveOrient::Model.keep_models_without_file && 
	  !ActiveOrient.database_classes.key( detected_class) && 
	  ![E,V].include?(detected_class) &&
	  !detected_class.require_model_file(from_model_dir) 
	  logger.info{ "#{detected_class.name} -->  Class NOT allocated"}
	  ActiveOrient.database_classes[ detected_class.ref_name ] = "no model file"
	  keep_the_dataset = false 
	end
	keep_the_dataset 
      end  
    end  
  end
def preallocate_classes from_model_dir = nil ActiveOrient . database_classes . each do | db_name , the_class | allocate_class_in_ruby ( db_name ) do | detected_class | keep_the_dataset = true if ! ActiveOrient :: Model . keep_models_without_file && ! ActiveOrient . database_classes . key ( detected_class ) && ! [ E , V ] . include? ( detected_class ) && ! detected_class . require_model_file ( from_model_dir ) logger . info { "#{detected_class.name} -->  Class NOT allocated" } ActiveOrient . database_classes [ detected_class . ref_name ] = "no model file" keep_the_dataset = false end keep_the_dataset end end end
preallocate classes reads any class from the  @classes-Array and allocates adequat Ruby-Objects
preallocate classes reads any class from the @classes - Array and allocates adequat Ruby - Objects
# :nodoc: # keep the class if it is already noted in database_classes  # return_value # block # each iteration
from_model_dir
<not_specific>