activesalesforce 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/salesforce_connection_adapter.rb +3 -3
- metadata +1 -1
@@ -222,14 +222,14 @@ module ActiveRecord
|
|
222
222
|
record.each do |name, value|
|
223
223
|
name = column_nameize(name.to_s)
|
224
224
|
if name != "type"
|
225
|
-
# Ids
|
226
|
-
value = value[0] if name == "id"
|
225
|
+
# Ids may be returned in an array with 2 duplicate entries...
|
226
|
+
value = value[0] if name == "id" && value.is_a?(Array)
|
227
227
|
|
228
228
|
row[name] = value
|
229
229
|
end
|
230
230
|
end
|
231
231
|
|
232
|
-
result << row
|
232
|
+
result << row
|
233
233
|
end
|
234
234
|
|
235
235
|
if selectCountMatch
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: activesalesforce
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
6
|
+
version: 0.2.1
|
7
7
|
date: 2006-02-06 00:00:00 -05:00
|
8
8
|
summary: ActiveSalesforce is an extension to the Rails Framework that allows for the dynamic creation and management of ActiveRecord objects through the use of Salesforce meta-data and uses a Salesforce.com organization as the backing store.
|
9
9
|
require_paths:
|