This commit is contained in:
albert
2013-02-24 11:45:23 -05:00
parent 65a87941e6
commit c43ae62cdf
2 changed files with 11 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ class Upload < ActiveRecord::Base
module ValidationMethods
def uploader_is_not_limited
if !uploader.can_upload?
raise Error.new("uploader has reached their daily limit")
raise Error.new(uploader.upload_limited_reason)
end
end