Skip to content

Commit

Permalink
Add freeze to included keys
Browse files Browse the repository at this point in the history
  • Loading branch information
h0jeZvgoxFepBQ2C committed Oct 14, 2020
1 parent 336359e commit bc67a3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc67a3b

Please sign in to comment.