Ruby 1.9.1 fix: binding for parse_string

This commit is contained in:
priit.mx.ee 2009-07-26 16:45:28 +03:00 committed by Chris Eppstein
parent 50aa936e02
commit c11be2eac6

View File

@ -39,9 +39,10 @@ module Compass
end
def parse_string(contents, filename)
eval(contents, binding, filename)
bind = binding
eval(contents, bind, filename)
ATTRIBUTES.each do |prop|
value = eval(prop.to_s, binding) rescue nil
value = eval(prop.to_s, bind) rescue nil
self.send("#{prop}=", value) if value
end
if @added_import_paths