Modified: trunk/lib/rest.rb (2089 => 2090)
--- trunk/lib/rest.rb 2009-02-05 18:27:11 UTC (rev 2089)
+++ trunk/lib/rest.rb 2009-02-05 18:45:26 UTC (rev 2090)
@@ -173,10 +173,12 @@
else
- if query['version'] and model_data['Versioned'][i] == 'yes'
- text = eval("ob.versions[#{(query['version'].to_i - 1).to_s}].#{accessor}").to_s
- else
- text = eval("ob.#{accessor}").to_s
+ if accessor
+ if query['version'] and model_data['Versioned'][i] == 'yes'
+ text = eval("ob.versions[#{(query['version'].to_i - 1).to_s}].#{accessor}").to_s
+ else
+ text = eval("ob.#{accessor}").to_s
+ end
end
if (model_data['Encoding'][i] == 'base64')