Skip to content
Browse files

tune script

  • Loading branch information...
1 parent 69d183e commit 5417ed57b8af9c3092d08c5d9a750e54f5aaa90d Malykh Oleg committed Jul 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/set_width_and_height_to_pictures.rb
View
2 bin/set_width_and_height_to_pictures.rb
@@ -1,7 +1,7 @@
#!/usr/local/bin/ruby18
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
-Picture.find(:all, :conditions => ["photo_cached_width_original IS NULL"]).each {|picture|
+Picture.find(:all, :conditions => ["photo_cached_width_original IS NULL OR photo_cached_width_resized IS NULL"]).each {|picture|
picture.set_width_and_height
picture.save!
}

0 comments on commit 5417ed5

Please sign in to comment.
Something went wrong with that request. Please try again.