VRFS-877 band photo work

This commit is contained in:
Brian Smith 2013-12-15 16:30:04 -05:00
parent 10d9232e3f
commit 0aaa460934
1 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ module JamRuby
return band
end
def update_avatar(original_fpfile, cropped_fpfile, crop_selection, aws_bucket)
def update_photo(original_fpfile, cropped_fpfile, crop_selection, aws_bucket)
self.updating_photo = true
cropped_s3_path = cropped_fpfile["key"]
@ -203,9 +203,9 @@ module JamRuby
)
end
def delete_avatar(aws_bucket)
def delete_photo(aws_bucket)
User.transaction do
Band.transaction do
unless self.cropped_s3_path.nil?
S3Util.delete(aws_bucket, File.dirname(self.cropped_s3_path) + '/cropped.jpg')