markbates / configatron

A super cool, simple, and feature rich configuration system for Ruby apps.

Home Page:http://www.metabates.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

array of locked config still can be modified

symontech opened this issue · comments

require 'configatron'
 => true 
2.5.0 :002 > configatron.test = []
 => [] 
2.5.0 :003 > configatron.lock!
 => true 
2.5.0 :004 > configatron.test << 1 # should raise exception
 => [1] 
2.5.0 :005 > configatron.test
 => [1] 

I think subclassing of Array might be required to fix this.