Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (20 sloc) 0.756 kb

acts_as_relationable

Automatically creates habtm :through relationships across multiple models using using a single join table.

Features

  • Can be self referential
  • Quickly define relationship-specific fields
  • Create relationships between STI models

Install

gem install winton-acts_as_relationable

Add to environment.rb

config.gem 'winton-acts_as_relationable', :lib => 'acts_as_relationable', :source => 'http://gems.github.com'

From your application directory

script/generate acts_as_relationable
rake db:migrate

Usage

Check out the wiki for usage examples.

Copyright © 2008 Winton Welsh
Jump to Line
Something went wrong with that request. Please try again.