Exception: Rails::Secrets::MissingKeyError

Inherits:
RuntimeError
  • Object
show all
Defined in:
railties/lib/rails/secrets.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeMissingKeyError

Returns a new instance of MissingKeyError.



11
12
13
14
15
16
# File 'railties/lib/rails/secrets.rb', line 11

def initialize
  super(<<-end_of_message.squish)
    Missing encryption key to decrypt secrets with.
    Ask your team for your master key and put it in ENV["RAILS_MASTER_KEY"]
  end_of_message
end