Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 19, 2011
  1. @chicks
  2. @chicks
  3. @chicks

    Version bump to 0.9.8

    chicks authored
  4. @chicks

    Moar Association Refactor

    chicks authored
Commits on Jan 18, 2011
  1. @chicks
Commits on Jan 17, 2011
  1. @davidsulc

    only add the relationship to the association_cache if the relationshi…

    davidsulc authored
    …p has already been queried
  2. @davidsulc

    add target to association_cache when calling associate!(target)

    davidsulc authored
    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. @davidsulc

    fix AssociationMethods#associate! to work for custom relationships cr…

    davidsulc authored
    …eated (in Studio) between 2 standard modules (e.g. Tasks and Documents)
  4. @davidsulc

    register humanized association names if different from link_fields

    davidsulc authored
    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. @chicks

    Version bump to 0.9.7

    chicks authored
  2. @chicks

    Removed Enumerable mixin from AssociationCollection

    chicks authored
    More assertions!
Commits on Jan 14, 2011
  1. @davidsulc
  2. @davidsulc
  3. @davidsulc

    fix error message

    davidsulc authored
  4. @davidsulc
  5. @davidsulc

    add AssociationMethods#associate! method

    davidsulc authored
    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
  1. @davidsulc
Commits on Jan 11, 2011
  1. @davidsulc

    delegate missing methods on association collections to Array

    davidsulc authored
    makes associated modules behave like Array (allowing , , etc.)
  2. @davidsulc

    small refactor

    davidsulc authored
    use the fact that find_every will return nil if no results are found
  3. @davidsulc

    return nil (instead of false) if no results are found

    davidsulc authored
    for coherence with commit 5150689
  4. @chicks

    Version bump to 0.9.6

    chicks authored
  5. @chicks
  6. @chicks

    Added test for :all => Array

    chicks authored
  7. @chicks

    Version bump to 0.9.5

    chicks authored
  8. @chicks
  9. @chicks

    Merge branch 'master' of https://github.com/davidsulc/sugarcrm into d…

    chicks authored
    …avidsulc-master
    
    Conflicts:
    	lib/sugarcrm/base.rb
  10. @chicks

    removed extra newline

    chicks authored
Commits on Jan 10, 2011
  1. @davidsulc

    alias :eql? :==

    davidsulc authored
    otherwise, @collection - @original (and other array operations) won't work correctly in association_collection.rb
Commits on Jan 7, 2011
  1. @chicks

    Merged pull request #7, minor cosmetic tweaks.

    chicks authored
    Adjusted test to be more generic, since I realized that Account names may be randomly generated.
  2. @chicks

    Version bump to 0.9.4

    chicks authored
  3. @davidsulc

    fix custom_table_name to return correct table name for custom module …

    davidsulc authored
    …(created in Studio)
    
    otherwise, tableize will incorrectly pluralize the module name
  4. @davidsulc
  5. @davidsulc
  6. @davidsulc
Commits on Jan 5, 2011
  1. @chicks

    Ignore .bundle

    chicks authored
Something went wrong with that request. Please try again.