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 Jan 10, 2020
1 parent d2bab99 commit 386fe28
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 386fe28

Please sign in to comment.