From b56cb93da6c2f343da7ca6278360e04d3da1afd3 Mon Sep 17 00:00:00 2001 From: Peter L Date: Wed, 18 Sep 2019 23:28:38 +0200 Subject: [PATCH] Add freeze to included keys --- lib/lit.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lit.rb b/lib/lit.rb index e3fa7fc5..6755f50d 100644 --- a/lib/lit.rb +++ b/lib/lit.rb @@ -38,6 +38,7 @@ def self.init Lit.included_keys = keys end Lit.included_keys = [] unless Lit.included_keys.is_a?(Array) + Lit.included_keys = Lit.included_keys.map(&:freeze).freeze if Lit.ignored_keys.is_a?(String) keys = Lit.ignored_keys.split(',').map(&:strip)