src/controller.rb in gimdb-0.0.2 vs src/controller.rb in gimdb-0.0.3

- old
+ new

@@ -25,10 +25,10 @@ i = i + 1 end record = Movie.find(:first, :conditions => "code = '#{v[:code]}'") if record.nil? record = Movie.new(v) - options[:path] ||= "#{$GIMDB_PATH}/posters/" + options[:path] ||= "#{$GIMDB_LOCAL_PATH}/posters/" image_path = "#{options[:path]}#{record.code}.jpg" if imdb.get_image(record.image_url, image_path) record.image_path = image_path end record.save!