diff --git a/lib/view_component/config.rb b/lib/view_component/config.rb index b3d06c7c6..d8dd79716 100644 --- a/lib/view_component/config.rb +++ b/lib/view_component/config.rb @@ -157,7 +157,10 @@ def defaults # @!attribute frozen_string_literal # @return [Boolean] - # Enables compiling templates with frozen_string_literal + # Enables compiling templates with the frozen_string_literal magic + # comment, which prevents modification of string objects by + # assuming they are frozen on initialize. Has performance + # benefits. # Defaults to `false`. def default_preview_paths