has_image 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +1 -0
  2. data/lib/has_image.rb +1 -1
  3. metadata +1 -1
data/CHANGELOG CHANGED
@@ -1,5 +1,6 @@
1
1
  2008-07-29 Norman Clarke <norman@randomba.org>
2
2
 
3
+ * Fixed ENONENT error with record update when there are no images yet.
3
4
  * Reverted thumbnail sorting feature - it's fast but makes terrible quality
4
5
  thumbnails. It's just not worth it.
5
6
 
data/lib/has_image.rb CHANGED
@@ -208,7 +208,7 @@ module HasImage
208
208
  # set.
209
209
  def update_images
210
210
  return if storage.temp_file.blank?
211
- storage.remove_images(self.id)
211
+ remove_images
212
212
  update_attribute(:has_image_file, storage.install_images(self.id))
213
213
  end
214
214
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norman Clarke