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: 44,785 of 190,871
Downloads: 26,522

Daily

Ranking: 74,705 of 190,817
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29960,265,198rspec
44721,231,822rails
72585,708,249pry
99451,829,506simplecov
179273,768,954awesome_print
280176,079,956sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui