uploadbox 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93240b0280249b35b89cd367932e1b2de5e6cce9
4
- data.tar.gz: e94a982a1aeb55497b4825a2ff89be06037d2914
3
+ metadata.gz: 637d6b0f57de21816a043ba94ee4e95261447acf
4
+ data.tar.gz: af78732210e3644d7e3814c18afbcb258ecf89f9
5
5
  SHA512:
6
- metadata.gz: 0c1221c95ae558e91ac8699db2ea603bdfb46b5b85a77aea927b58733ebaa52c66a7a621872ade40572d6f988d08998c8e92f370499d9f50c214b29443447649
7
- data.tar.gz: 2386b4127cedfc97a72c7ec8133748fddb14ebcbb88f921a73f36bd3218d13f88dfdc6774482631f5aecc9d36e09fb303b899df23bc5ad152d699d68a95383bf
6
+ metadata.gz: 7f61d7328f6e8693a6969fb4440b5031527f3f205c8dcb60f726d789ddddc94980e8f5d1ea71df477f4f3bd8e7db885ba68607a241f51c2f71945b0203de9291
7
+ data.tar.gz: 8ca89bc71b260627903c25a9aec839b03ff6b83e241b4aa42e56af4da61d8c7917f744b370a187c73e7bf8c082258962e0ce1cb798cfa84fcbd9ad6b1b896857
@@ -51,7 +51,9 @@ module Uploadbox
51
51
 
52
52
  # @post.picture=(id)
53
53
  define_method("#{upload_name}=") do |upload_id|
54
- self.send("#{upload_name}_upload=", upload_class.find(upload_id))
54
+ if upload_id.present?
55
+ self.send("#{upload_name}_upload=", upload_class.find(upload_id))
56
+ end
55
57
  end
56
58
 
57
59
  # @post.remote_picture_url=('http://exemple.com/image.jpg')
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-24 00:00:00.000000000 Z
12
+ date: 2013-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails