lib/sugarcrm/associations/association_methods.rb in sugarcrm-0.9.0 vs lib/sugarcrm/associations/association_methods.rb in sugarcrm-0.9.1

- old
+ new

@@ -42,19 +42,14 @@ self.class.module_eval %Q? def #{k} query_association :#{k} end ? - #seed_association_cache(k.to_syn) end self.class.association_methods_generated = true end -# def seed_association_cache(association) -# @association_cache[association] = AssociationCollection.new(self,association) -# end - # Returns the records from the associated module or returns the cached copy if we've already # loaded it. Force a reload of the records with reload=true # # {"email_addresses"=> # {"name"=>"email_addresses", @@ -74,19 +69,6 @@ # add it to the cache @association_cache[association] = collection collection end - # Loads related records for the given association -# def load_associations_for(association) -# SugarCRM.connection.get_relationships(self.class._module.name, self.id, association.to_s) -# end - - # pushes an element to the association collection - def append_to_association(association, record) - collection = query_association(association) - collection << record - collection - end - - end; end \ No newline at end of file