What is the best way to store app specific configuration in rails?

后端 未结 6 573
心在旅途
心在旅途 2020-12-30 14:56

I need to store app specific configuration in rails. But it has to be:

  • reachable in any file (model, view, helpers and controllers
  • environment specifi
6条回答
  •  囚心锁ツ
    2020-12-30 15:18

    I have used Rails Settings Cached.

    It is very simple to use, keeps your configuration values cached and allows you to change them dynamically.

提交回复
热议问题