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 Sep 18, 2019
1 parent e40a2bd commit a1d4255
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 a1d4255

Please sign in to comment.