jeudi 9 mars 2017

Replicate an object method in rails

I have a rails engine which uses current_person object from the consuming application. The engine calls current_person.name.

I need to replicate this object so that i can create a stand alone dummy app for my engine. How do i define current_person object in my dummy app so that my engine will correctly pick up current_person.name when run from the dummy app.




Aucun commentaire:

Enregistrer un commentaire