Plugins - Acts As Automatic

StarAdd to favorites

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:

Yehuda Katz

http://svn.visualjquery.com/admin_console/trunk/admin_console/vendor/plugins/acts_as_automatic/

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

Model

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?