mikker / rails-creds

🔧 Creds adds a shortcut and (more) conventions around Rails' Credentials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Gem version

Creds is both a) a shortcut for the dreadfully long Rails.application.credentials and b) bringing environment scoping back (from when it was called secrets).

Usage

Given encrypted credentials looking like:

---
super_secret: 'shared between environments'

production:
  super_secret: 'you can override defaults for individual environments'

You can access those super secret things like:

Creds.super_secret # => "shared between environments"
  # or, of course, the other when in production

Installation

gem 'rails-creds'

That's it.

License

MIT

About

🔧 Creds adds a shortcut and (more) conventions around Rails' Credentials

License:MIT License


Languages

Language:Ruby 100.0%