lib/saviour/model.rb in saviour-0.3.1 vs lib/saviour/model.rb in saviour-0.4.0

- old
+ new

@@ -13,11 +13,11 @@ validate { Saviour::Validator.new(self).validate! } end end def reload - self.class.attached_files.each do |attach_as, versions| - (versions + [nil]).each { |version| instance_variable_set("@__uploader_#{version}_#{attach_as}", nil) } + self.class.attached_files.each do |attach_as| + instance_variable_set("@__uploader_#{attach_as}", nil) end super end end end \ No newline at end of file