How to package model classes for use in Rails and elsewhere

P

pablitoman

I have what is probably a relatively simple question.

I have a collection of model classes that subclass ActiveRecord in
Rails.

I would also like to use these classes in: a) other Rails apps and b)
other non-rails apps that use ruby.

Is there a "best practice" for bundling/requiring this collection of
classes so that I don't have to "hand-copy" them into different
projects?

Should I make a gem (the classes wouldn't be relevant to anyone else)
or is there some other DRY approach?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top