method

validate_secret_key_config!

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: Rails::Application
validate_secret_key_config!() protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/application.rb, line 460
    def validate_secret_key_config! #:nodoc:
      if secrets.secret_key_base.blank? && config.secret_token.blank?
        raise "Missing `secret_key_base` for '#{Rails.env}' environment, set this value in `config/secrets.yml`"
      end
    end
Register or log in to add new notes.