bteitelb-paperclip 2.3.1.3 → 2.3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paperclip/attachment.rb +1 -1
- metadata +1 -1
data/lib/paperclip/attachment.rb
CHANGED
@@ -436,7 +436,7 @@ module Paperclip
|
|
436
436
|
geometry = Paperclip::Geometry.from_file(to_file(style))
|
437
437
|
instance_write(:width, geometry.width.to_i)
|
438
438
|
instance_write(:height, geometry.height.to_i)
|
439
|
-
instance.save
|
439
|
+
instance.save unless instance.readonly?
|
440
440
|
w, h = geometry.width.to_i, geometry.height.to_i
|
441
441
|
end
|
442
442
|
if @styles[style].nil? or @styles[style][:geometry].nil?
|