eBooru/config/initializers/secret_token.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

12 lines
342 B
Ruby

# frozen_string_literal: true
require File.expand_path('../../state_checker', __FILE__)
StateChecker.instance.check!
Rails.application.config.action_dispatch.session = {
:key => '_danbooru2_session',
:secret => StateChecker.instance.session_secret_key
}
Rails.application.config.secret_key_base = StateChecker.instance.secret_token