# Where to put generic classes

**URL:** <https://www.ruby-forum.com/t/where-to-put-generic-classes/173387>\
**Category:** Rails\
**Created:** [August 7, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/where-to-put-generic-classes/173387 "2009-08-07T20:10:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [August 7, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/where-to-put-generic-classes/173387/1 "2009-08-07T20:10:46Z")

</div>

I have a file that has a generic class that supports serialization to/  
from files. Where should I put this class? It really does not fit  
under the generic MVC directories. Thoughts?

---

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [August 7, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/where-to-put-generic-classes/173387/2 "2009-08-07T20:12:32Z")

</div>

Under the lib folder.

Or as a plugin.

- 

Maurício Linhares  
[http://codeshooter.wordpress.com/](http://codeshooter.wordpress.com/) | [http://twitter.com/mauriciojr](http://twitter.com/mauriciojr)
