aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder/association.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* association methods are now generated in modulesJosh Susser2011-11-151-5/+5
| | | | | | | | | | Instead of generating association methods directly in the model class, they are generated in an anonymous module which is then included in the model class. There is one such module for each association. The only subtlety is that the generated_attributes_methods module (from ActiveModel) must be forced to be included before association methods are created so that attribute methods will not shadow association methods.
* Use proper objects to do the work to build the associations (adding methods, ↵Jon Leighton2011-02-211-0/+53
callbacks etc) rather than calling a whole bunch of methods with rather long names.