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.
Files changed (2) hide show
  1. data/lib/paperclip/attachment.rb +1 -1
  2. metadata +1 -1
@@ -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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bteitelb-paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.3
4
+ version: 2.3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Yurek