Try using a mixin (module).
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Can you mixin 'has_many', etc., into models? | 0 | 88 | December 27, 2007 | |
Module to share methods with mulitple models | 0 | 139 | August 25, 2006 | |
Can you mixin 'has_many', etc., into models? | 0 | 111 | December 27, 2007 | |
Can you use a mixin to add action methods to an ActionController? | 4 | 458 | May 16, 2007 | |
Where to put and how to use modules for models | 11 | 157 | March 13, 2008 |