updated model annotations

This commit is contained in:
Régis Hanol
2013-08-13 22:09:27 +02:00
parent 92b0cfe3d3
commit 9a7df140b7
6 changed files with 35 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class OptimizedImage < ActiveRecord::Base
def destroy
OptimizedImage.transaction do
Discourse.store.remove_file(url)
Discourse.store.remove_optimized_image(self)
super
end
end
@@ -60,6 +60,7 @@ end
# width :integer not null
# height :integer not null
# upload_id :integer not null
# url :string(255) not null
#
# Indexes
#