Sign in Sign up
rubygems

cre

Cre reduces the amount of code you have to write when fetching rails credentials. If your encrypted credentials look like this: production: password: 'foobar' development: password: 'foobar' test: password: 'foobar' Usually you have to get it like this: `Rails.application.credentials.dig(Rails.env, :password)` with Cre you can just do: `Cre.dig(:password)`. By default it grabs the current Rails environment. To overwrite this behavior add the enviroment as the first argument: `Cre.dig(:production, :password)`

Activity

Latest release
1mo ago
Total releases
7
Cadence
~8 months
Last 12 months
1

Reach

Downloads
27.3k
Stars
4

Details

License
MIT
First release
Oct 02, 2018
Releases
Version Released
2.2.0 minor
2.1.1 patch
2.1.0 major
2 unknown
0.1.5 patch
0.1.2 initial
0.1.3 patch