activeupdate 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activeupdate.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 198d0eadfaae9ee593e8a53ed56a285357f1e8a0
|
4
|
+
data.tar.gz: 8c72576fabd6abd5748b09b6b8ba0c20a7e187e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea960d0015cd4045e6acda6cdb2804c21fdaa6ffc47686d250ada3c8ab2447041709383eeb4443e3a270056c5847b7c829c4d038bf50a01c6dad44cfe0cdf844
|
7
|
+
data.tar.gz: 93bf67c5c3c77b551a4b2e346c989ec4f71c29cafe84bd83e7a127d43e3de76858db18f12557a2f93f7826086aa13468e3d5a4a9029db5cf70c3566c19bb7de9
|
data/lib/activeupdate.rb
CHANGED
@@ -5,8 +5,8 @@ module ActiveRecordExtension
|
|
5
5
|
|
6
6
|
# Updates an object (or multiple objects) and saves it to the database. The resulting object is returned whether the object was saved successfully to the database or not.
|
7
7
|
#
|
8
|
-
# @param resources_hash [Hash]
|
9
|
-
# @return [Object]
|
8
|
+
# @param resources_hash [Hash] a hash of resources, { '0' => { 'id' => 1, 'attribute' => 'test' }, '1' => { 'id' => 2, 'attribute' => 'cheese' } }
|
9
|
+
# @return [Object] the object.
|
10
10
|
def update!(resources_hash = nil)
|
11
11
|
return self unless resources_hash
|
12
12
|
|