On 29 October 2012 15:50, PierreW <wamre...@googlemail.com> wrote: > Hi guys! > > We have moved a part of our Rails app into a "service", i.e. a Ruby > script that is demonized and communicates with the main app through a > message queue. > This service needs to know about the models in the Rails app, but it > does not need a database connection. Indeed, we are making sure that > in this service, no call to the DB will be made. > > How would you do that? At the moment, we are simply requiring the > models files in the service. But since they inherit from > ActiveRecord::base, it won't work if there is no connection to a DB > available.
What are you doing with the models (in the service) that does not require a db connection? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.