lib/enlight/requests/request.rb in enlight-0.2.1 vs lib/enlight/requests/request.rb in enlight-0.2.2
- old
+ new
@@ -28,10 +28,10 @@
var = v.to_s.delete('@')
if var == 'id'
resource_id = instance_variable_get(v) if var == 'id'
else
- query_params[var.classify] = instance_variable_get(v)
+ query_params[var.camelcase] = instance_variable_get(v)
end
end
uri = "#{base_uri}/#{resource}"
uri += "/#{resource_id}" if resource_id
\ No newline at end of file