nerdgeschoss / shimmer

Shimmer is a collection of Rails extensions that bring advanced UI features into your app and make your life easier as a developer.
https://nerdgeschoss.de
MIT License
5 stars 1 forks source link

add rails env to config #88

Closed jmarsh24 closed 1 month ago

jmarsh24 commented 9 months ago

The default behavior of rails allows the encrypted credentials file to be environment specific. This PR provides this functionality and prioritizes env specific keys over non environment specific ones.

secret: the actual-secret

test: 
  secret: stubbed_key

production:
  secret: the-actual-secret

In this example this key would be used.

production:
  secret: the-actual-secret