I have some models in my Rails application that I would like to also use in a Ruby script, that are deployed on separate VM's.
I could create a gem that includes these models, and then require this gem from both apps. I could also link the repositories in github so that the models from the rails app get deployed with the Ruby script.
I feel like the gem approach might work, but not sure what the best practice is here.
Are there any other options?
Thanks