winton / acts_as_relationable
acts_as_relationable
PublicQuick and easy habtm :through relationships in Rails
10 filesupdated Jun 18, 2026
files7Download
./generatorsJun 16, 2026./libJun 16, 2026.gitignoreJun 16, 2026acts_as_relationable.gemspecJun 16, 2026init.rbJun 16, 2026MIT-LICENSEJun 16, 2026README.markdownJun 18, 2026README
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.