Categories: None [Edit]
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,256 of 187,804
Downloads: 26,074
Daily
Ranking: 47,659 of 187,765
Downloads: 2
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | khalilgharbaoui |