Fix coding standards in application files

This commit is contained in:
Thibault Jouan
2015-04-30 08:52:00 +00:00
parent 737ac1f10a
commit 3b733c349e
16 changed files with 34 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ class Sound < ActiveRecord::Base
"#{Rails.configuration.sounds_path}/#{sha256}"
end
def file=(file)
def file= file
self.sha256 = Digest::SHA256.file(file.path).hexdigest
FileUtils.cp file.path, path
self.mime_type = file.content_type