Closed cimm closed 12 years ago
Hi cimm,
As I've tested here, it should work. Which ruby version are you using?
Maybe I missed something. Will investigate a little more. I am on 1.9.3.
You are right, a normal variable works, it only happens when I use an instance variable. Suppose it loses it's context within the block. Probably not something you have to fix. Sorry about that.
Hi Thiago,
While checking the fix you released I ran in another problem... It seems you can't assign a datasource with a variable.
The
some_var
in the example is the problem. Everything works fine as long as it is a string but once I replace it with a variable he won't create the RRD file anymore:I traced back the problem to the builder in the gem. I suppose the
builder.instance_eval
does something weird with the variable.