Permalink
Commits on Jan 19, 2011
  1. Version bump to 0.9.8

    chicks committed Jan 19, 2011
  2. Moar Association Refactor

    chicks committed Jan 19, 2011
Commits on Jan 18, 2011
Commits on Jan 17, 2011
  1. only add the relationship to the association_cache if the relationshi…

    davidsulc committed Jan 17, 2011
    …p has already been queried
  2. add target to association_cache when calling associate!(target)

    davidsulc committed Jan 17, 2011
    makes the following work properly
    account.contacts.size # => 0
    account.associate!(contact)
    account.contacts.size # => 1
    
    Prior to this commit, the last line would return 0
  3. fix AssociationMethods#associate! to work for custom relationships cr…

    davidsulc committed Jan 17, 2011
    …eated (in Studio) between 2 standard modules (e.g. Tasks and Documents)
  4. register humanized association names if different from link_fields

    davidsulc committed Jan 17, 2011
    e.g. if a custom relationship is created in the Studio between Tasks and Documents, the corresponding link_field will be
    Since a human would refer to the association as  (e.g. by calling task.documents), the humanized name of the association is registered in the Class
    
    This is done in addition to registering a method with the link_field name, to maintain backward compatibility
Commits on Jan 15, 2011
  1. Version bump to 0.9.7

    chicks committed Jan 15, 2011
  2. Removed Enumerable mixin from AssociationCollection

    chicks committed Jan 15, 2011
    More assertions!
Commits on Jan 14, 2011
  1. fix error message

    davidsulc committed Jan 14, 2011
  2. add AssociationMethods#associate! method

    davidsulc committed Jan 14, 2011
    allows associating records without loading relationships first (which happens when using AssociationCollection#<<)
    
    enables users to avoid Timeout::Error when associating with a record having many relationships
Commits on Jan 12, 2011
Commits on Jan 11, 2011
  1. delegate missing methods on association collections to Array

    davidsulc committed Jan 11, 2011
    makes associated modules behave like Array (allowing , , etc.)
  2. small refactor

    davidsulc committed Jan 11, 2011
    use the fact that find_every will return nil if no results are found
  3. return nil (instead of false) if no results are found

    davidsulc committed Jan 11, 2011
    for coherence with commit 5150689
  4. Version bump to 0.9.6

    chicks committed Jan 11, 2011
  5. Added test :all => Array (false)

    chicks committed Jan 11, 2011
  6. Added test for :all => Array

    chicks committed Jan 11, 2011
  7. Version bump to 0.9.5

    chicks committed Jan 11, 2011
  8. :all will :always return an array

    chicks committed Jan 11, 2011
  9. Merge branch 'master' of https://github.com/davidsulc/sugarcrm into d…

    chicks committed Jan 11, 2011
    …avidsulc-master
    
    Conflicts:
    	lib/sugarcrm/base.rb
  10. removed extra newline

    chicks committed Jan 11, 2011
Commits on Jan 10, 2011
  1. alias :eql? :==

    davidsulc committed Jan 10, 2011
    otherwise, @collection - @original (and other array operations) won't work correctly in association_collection.rb
Commits on Jan 7, 2011
  1. Merged pull request #7, minor cosmetic tweaks.

    chicks committed Jan 7, 2011
    Adjusted test to be more generic, since I realized that Account names may be randomly generated.
  2. Version bump to 0.9.4

    chicks committed Jan 7, 2011
  3. fix custom_table_name to return correct table name for custom module …

    davidsulc committed Jan 7, 2011
    …(created in Studio)
    
    otherwise, tableize will incorrectly pluralize the module name
Commits on Jan 5, 2011
  1. Ignore .bundle

    chicks committed Jan 5, 2011