Skip to content

Commit

Permalink
Fixed a typo that caused an exception of you deleted a record that ha…
Browse files Browse the repository at this point in the history
…d no associated image when using file system storage.
  • Loading branch information
AlexJWayne authored and dummied committed Jan 21, 2009
1 parent eef88fe commit 5a68c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fleximage/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def delete_image_file
if self.class.db_store?
update_attribute :image_file_data, nil unless frozen?
else
File.delete(file_path) && File.exists?(file_path)
File.delete(file_path) if File.exists?(file_path)
end

clear_magic_attributes
Expand Down

0 comments on commit 5a68c58

Please sign in to comment.