Commit b0a176cf1c8cb43136f1fd8da7027abe21a6594b
Committed by
Georg Hopp
1 parent
6ce7c0f1
fix eval_pattern
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -28,7 +28,8 @@ class DsAdmin::Storage::Config |
28 | 28 | result = String.new |
29 | 29 | pattern.scan(scan_exp) do |m| |
30 | 30 | key = m[2][1..m[2].length].to_sym if m[2] |
31 | - val = eval('"' + data[key] + '".send ' + m[4]) if data[key] && m[4] | |
31 | + val = data[key] if data[key] | |
32 | + val = eval('"' + val + '".send ' + m[4]) if val && m[4] | |
32 | 33 | |
33 | 34 | result += m[0] + (val || "") |
34 | 35 | end | ... | ... |
Please
register
or
login
to post a comment