Agile Web Development

Build it. Launch it. Love it.

Acts As Automatic

1) acts_as_automatic: At the moment, automatically adds belongs_to :whatever if it detects whatever_id in the model’s table.

2) ActiveRecord extension: Reads in config/associations.yml and applies the associations as appropriate

Example associations.yml:

 has_many:
   category : articles
   author   : articles
   article  : tags
   author   : {tags: {through: articles}}

 has_one:
   article : attachment

 acts_as_list:
   article: {scope: category}
   author:

Vitals

Repository http://svn.visualjquery.com/admin_console/trunk/admin_console/vendor/plugins/acts_as_automatic/
License
Tags Tag_red
Rating (2 votes)
Owner Yehuda Katz
Created 22 July 2006

Comments

Add a comment