Two rails apps sharing a model folder

前端 未结 7 527
半阙折子戏
半阙折子戏 2020-12-23 22:14

I have two rails apps running off the same database, one which runs the client and one which provides an admin interface.

Both the apps have the exact same models de

7条回答
  •  情深已故
    2020-12-23 22:32

    I work on a project that has a similar issue and we used svn:externals to share the model code between two apps.

    Basically you have the models diretory in one svn project and use an external in the other project to share the code. You can edit code in either project and it will be updated when you run svn up in the other project.

    As far as Rails and your build scripts are concerned the two models directories are completely separate.

提交回复
热议问题