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 +4 -4
- data/lib/uploadbox/image_uploader.rb +3 -1
- data/lib/uploadbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 637d6b0f57de21816a043ba94ee4e95261447acf
|
4
|
+
data.tar.gz: af78732210e3644d7e3814c18afbcb258ecf89f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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')
|
data/lib/uploadbox/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|