From bc67a3b247b395daacf28f70ca862e1bcb80e0a3 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 4f52506b..dbf50550 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)