summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytses@gmail.com>2014-12-02 10:32:24 +0100
committerSytse Sijbrandij <sytses@gmail.com>2014-12-02 10:32:24 +0100
commit8f60144782ba564c63d757c11a72440202f2490c (patch)
tree47fb196074245193e5b5dab9b9c9c229af11fd49 /app/models
parent3a723ad24c56404a4180b011bd577153f9d25ccd (diff)
downloadgitlab-ce-8f60144782ba564c63d757c11a72440202f2490c.tar.gz
Change avatar file size to 200kb.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index fc191a78f53..1cddd85ada0 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -124,7 +124,7 @@ class User < ActiveRecord::Base
validate :namespace_uniq, if: ->(user) { user.username_changed? }
validate :avatar_type, if: ->(user) { user.avatar_changed? }
validate :unique_email, if: ->(user) { user.email_changed? }
- validates :avatar, file_size: { maximum: 100.kilobytes.to_i }
+ validates :avatar, file_size: { maximum: 200.kilobytes.to_i }
before_validation :generate_password, on: :create
before_validation :sanitize_attrs