about summary refs log tree commit diff
path: root/app/models/concerns/account_avatar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/account_avatar.rb')
-rw-r--r--app/models/concerns/account_avatar.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/concerns/account_avatar.rb b/app/models/concerns/account_avatar.rb
index 73507a328..a6527a85b 100644
--- a/app/models/concerns/account_avatar.rb
+++ b/app/models/concerns/account_avatar.rb
@@ -20,13 +20,13 @@ module AccountAvatar
     has_attached_file :avatar, styles: ->(f) { avatar_styles(f) }, convert_options: { all: '-quality 80 -strip' }
     validates_attachment_content_type :avatar, content_type: IMAGE_MIME_TYPES
     validates_attachment_size :avatar, less_than: 2.megabytes
+  end
 
-    def avatar_original_url
-      avatar.url(:original)
-    end
+  def avatar_original_url
+    avatar.url(:original)
+  end
 
-    def avatar_static_url
-      avatar_content_type == 'image/gif' ? avatar.url(:static) : avatar_original_url
-    end
+  def avatar_static_url
+    avatar_content_type == 'image/gif' ? avatar.url(:static) : avatar_original_url
   end
 end