theforeman / safemode

A library for safe evaluation of Ruby code based on ParseTree/RubyParser and Ruby2Ruby. Provides Rails ActionView template handlers for ERB and Haml.
http://www.artweb-design.de
MIT License
68 stars 20 forks source link

Using defined? or const_defined? is not allowed #13

Open ares opened 9 years ago

ares commented 9 years ago

using any of these methods result in Safemode doesn't allow to access 'constant' on Object