have you seen https://github.com/rapid7/psych_shield ?
By default, Psych Shield allows the following types of objects:
Hash Array String Range
Numeric Fixnum Integer Bignum Float Rational Complex
Time DateTime
NilClass TrueClass FalseClass
To enable additional classes, add the stringified form using the "add" method:
PsychShield.add('MyClass::IsAwesome::And::Safe')
To disable all classes (even the defaults), use the clear method:
PsychShield.clear
have you seen https://github.com/rapid7/psych_shield ?
By default, Psych Shield allows the following types of objects:
Hash Array String Range
Numeric Fixnum Integer Bignum Float Rational Complex
Time DateTime
NilClass TrueClass FalseClass
To enable additional classes, add the stringified form using the "add" method:
PsychShield.add('MyClass::IsAwesome::And::Safe')
To disable all classes (even the defaults), use the clear method:
PsychShield.clear