builtin/widgets/screen_variable_processing.rb in rtml-2.0.3 vs builtin/widgets/screen_variable_processing.rb in rtml-2.0.4
- old
+ new
@@ -40,12 +40,12 @@
end
def options_for(value_or_array)
if value_or_array.kind_of? Array
value_or_array = tmlize_condition(*value_or_array)
- { :lo => value_or_array[0], :op => value_or_array[1], :ro => value_or_array[2] }
+ { :lo => (value_or_array[0]), :op => value_or_array[1], :ro => (value_or_array[2]) }
else
- { :lo => value_or_array }
+ { :lo => (value_or_array) }
end
end
def value_or_condition(value)
if value.kind_of? String