"Fossies" - the Fresh Open Source Software Archive

Member "discourse-2.2.6/config/initializers/100-secret_token.rb" (10 Jun 2019, 262 Bytes) of package /linux/www/discourse-2.2.6.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # Not fussed setting secret_token anymore, that is only required for
    2 # backwards support of "seamless" upgrade from Rails 3.
    3 # Discourse has shipped Rails 3 for a very long time.
    4 Discourse::Application.config.secret_key_base = GlobalSetting.safe_secret_key_base