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)`

Required Ruby Version

>= 2.7

Authors

Khalil Gharbaoui

Versions

  1. 2.2.0
    1. source

      1. 2.2.0 source August 02, 2026 (7.5 KB)
  2. 2.1.1
    1. source

      1. 2.1.1 source December 17, 2021 (6.5 KB)
  3. 2.1.0
    1. source

      1. 2.1.0 source July 10, 2021 (6.5 KB)
  4. 2
    1. source

      1. 2 source January 05, 2020 (6.5 KB)
  5. 0.1.5
    1. source

      1. 0.1.5 source January 31, 2019 (6.5 KB)
Show all versions (10 total)

SHA 256 checksum