haraway 0.1.0.dev.41 → 0.1.0.dev.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/haraway/active_record/macro.rb +5 -0
- data/lib/haraway/lib_version.rb +1 -1
- 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: 1afabdbd3be764cd7e82ebc8b19c3810b9381ad2
|
4
|
+
data.tar.gz: 154d53b45fe5413401667a5ce6ab3e5bfe23c728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6356ca1f05064fc11b7819b30c0677406115cca1688fc56cf9206e68e07c835b52831fed040dc2f39cf79a946ba1fc7e40737777fa89724071211f416e232162
|
7
|
+
data.tar.gz: 7a65f08c212a0442663fbc1d7a47d66485266dbb192f903fc81f5de2ffde40226d08ab912a5dc92b26fe204b20249b6e11d8fa3920df7e28178ced2a42e77c17
|
@@ -13,6 +13,10 @@ private
|
|
13
13
|
asset_id = attrs[:id]
|
14
14
|
asset = old_assets.delete(asset_id)
|
15
15
|
|
16
|
+
if asset_id.blank? or asset_id == "undefined"
|
17
|
+
next
|
18
|
+
end
|
19
|
+
|
16
20
|
if asset.nil?
|
17
21
|
asset = Haraway::ActiveRecord::Asset.new(attrs)
|
18
22
|
unless asset.destroy?
|
@@ -150,6 +154,7 @@ private
|
|
150
154
|
end
|
151
155
|
|
152
156
|
if asset_ids.size > 0
|
157
|
+
puts "asset_ids=#{asset_ids.inspect}"
|
153
158
|
Haraway::Committer.new(Haraway.configuration, asset_ids).commit!
|
154
159
|
@_haraway_uploaded_assets = nil
|
155
160
|
end
|
data/lib/haraway/lib_version.rb
CHANGED