vendredi 30 octobre 2015

How to access the file in The rails project by gem?

File.open(File.join(__dir__, 'config/global_nav_data.yml'))

The rails project where my gem got installed will have some file inside config folder. I have to get that file in the project. I tried the above but it is fetching file in the gem not in the project .

Aucun commentaire:

Enregistrer un commentaire