Monkey-patch Symbol#to_s to return a frozen (immutable) string instead of a mutable string. This should reduce string allocations, and thereby reduce memory usage and garbage collector pressure, but it may be incompatible with libraries that expect Symbol#to_s to return a mutable string. https://bugs.ruby-lang.org/issues/16150 https://github.com/Shopify/symbol-fstring
Config
This directory contains configuration files for Danbooru.
To configure your Danbooru instance, copy danbooru_default_config.rb to danbooru_local_config.rb and edit it. See danbooru_default_config.rb for details.
The only file here that end users need to be concerned about is danbooru_default_config.rb. The rest of the files here are internal Rails-related configuration files that end users shouldn't need to edit.