about summary refs log tree commit diff
path: root/app/models/concerns/account_header.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/account_header.rb')
-rw-r--r--app/models/concerns/account_header.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/concerns/account_header.rb b/app/models/concerns/account_header.rb
index 4d96e990a..4ba9212a2 100644
--- a/app/models/concerns/account_header.rb
+++ b/app/models/concerns/account_header.rb
@@ -20,13 +20,13 @@ module AccountHeader
     has_attached_file :header, styles: ->(f) { header_styles(f) }, convert_options: { all: '-quality 80 -strip' }
     validates_attachment_content_type :header, content_type: IMAGE_MIME_TYPES
     validates_attachment_size :header, less_than: 2.megabytes
+  end
 
-    def header_original_url
-      header.url(:original)
-    end
+  def header_original_url
+    header.url(:original)
+  end
 
-    def header_static_url
-      header_content_type == 'image/gif' ? header.url(:static) : header_original_url
-    end
+  def header_static_url
+    header_content_type == 'image/gif' ? header.url(:static) : header_original_url
   end
 end