简体   繁体   中英

using one method of another application with Ruby on Rails

I have two applications that I am working on. One of them is the admin side and the other one is the customer side.

I have a method on the customer side and I would like to use it on the admin side. My question is this; how can I use it?

The method is under app/services/production_personalization#generate_qr_code(url)

The view I would like to use this method is running under production#show

*I cannot share any code with you because it is forbidden. Thanks for your understanding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM