sequel_paperclip 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sequel_paperclip.rb +3 -3
- data/sequel_paperclip.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/sequel_paperclip.rb
CHANGED
@@ -80,15 +80,15 @@ module Sequel
|
|
80
80
|
send("#{name}_basename=", basename)
|
81
81
|
|
82
82
|
if respond_to?("#{name}_filename")
|
83
|
-
send("#{name}_filename=", basename+File.extname(
|
83
|
+
send("#{name}_filename=", basename+File.extname(value.original_filename).downcase)
|
84
84
|
end
|
85
85
|
|
86
86
|
if respond_to?("#{name}_filesize")
|
87
|
-
send("#{name}_filesize=",
|
87
|
+
send("#{name}_filesize=", value.size)
|
88
88
|
end
|
89
89
|
|
90
90
|
if respond_to?("#{name}_originalname")
|
91
|
-
send("#{name}_originalname=",
|
91
|
+
send("#{name}_originalname=", value.original_filename)
|
92
92
|
end
|
93
93
|
else
|
94
94
|
send("#{name}_basename=", nil)
|
data/sequel_paperclip.gemspec
CHANGED