method
validate_secret_key_config!
rails latest stable - Class:
Rails::Application
validate_secret_key_config!()protected
No documentation available.
# File railties/lib/rails/application.rb, line 504
def validate_secret_key_config! #:nodoc:
if secrets.secret_key_base.blank?
ActiveSupport::Deprecation.warn "You didn't set `secret_key_base`. " "Read the upgrade documentation to learn more about this new config option."
if secrets.secret_token.blank?
raise "Missing `secret_key_base` for '#{Rails.env}' environment, set this value in `config/secrets.yml`"
end
end
end