redcrumbs (0.2.3): Fast and unobtrusive activit...
Fast and unobtrusive activity tracking of ActiveRecord models using DataMapper and Redis
Specifies a many-to-many relationship with another class. This associates two classes via an intermediate join table. Unless the join table is explicitly specified as an option, it is guessed using the lexical order of the class names. So a join between Developer and Project will give the default join table name of “developers_projects” because “D” outranks “P”. Note that this precedence is calculated using the < operator for String . This means that if the strings are of different lengths, and the strings are equal when compared up to the shortest length, then the longer string is considered of higher lexical precedence than the shorter one. For example, one would expect the tables “paper_boxes” and “papers” to generate a join table name of “papers_paper_boxes” because of the length of the name “paper_boxes”, but it in fact generates a join table name of “paper_boxes_pape...
Full article: http://api.rubyonrails.org/classes/ActiveRecord/Associati...
@sharkbyte98
»
27 Jun '12, 2pm
Fast and unobtrusive activity tracking of ActiveRecord models using DataMapper and Redis