lib/inch/config.rb in inch-0.3.0.rc2 vs lib/inch/config.rb in inch-0.3.0.rc3
- old
+ new
@@ -43,10 +43,10 @@
def priority(symbol, &block)
::Inch::Evaluation::PriorityRange.priority_range(symbol, &block)
end
def schema(constant_name, &block)
- constant = eval("::Inch::Evaluation::Proxy::#{constant_name}")
+ constant = ::Inch::Evaluation::Proxy.const_get(constant_name)
constant.criteria(&block)
end
end
end
end