Plugins - association_collection_tools

StarAdd to favorites

Adds methods to Rails has_many and HABTM associations that speed up common operations:

a. fast_copy
A method called fast_copy is added to has_and_belongs_to_many association collections that makes the process of cloning HABTM associations MUCH more efficient. Simply replace person1.items = person2.items with person1.items.fast_copy(person2) and your database, network and RAM will thank you. See below for more details.

b. ids
A method called ids is added to has_many and has_and_belongs_to_many association collections. It returns the list of object ids in the association collection without unnecessarily instantiating the objects.

Read the full announcement for more details:
http://blog.zvents.com/2006/11/3/rails-plugin-association-collection-tools

Tyler Kovacs

http://blog.zvents.com/2006/11/3/rails-plugin-association-collection-tools

svn://rubyforge.org/var/svn/zventstools/projects/association_collection_tools

Rails' (MIT)

  • Currently 3.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?