Categories: None [Edit]

cre

https://rubygems.org/gems/cre
https://github.com/khalilgharbaoui/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)`

Total

Ranking: 45,216 of 192,851
Downloads: 26,785

Daily

Ranking: 64,913 of 192,822
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29979,151,739rspec
44743,857,214rails
72601,993,426pry
98467,064,754simplecov
179278,200,462awesome_print
278182,716,996sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui