Exception: Rails::Secrets::MissingKeyError

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

Instance Method Summary collapse

Constructor Details

#initializeMissingKeyError

Returns a new instance of MissingKeyError.



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

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