Browse Source

avatar: fix duplicated constants

dariusk-working/4_4_0
Misty De Meo 4 months ago
parent
commit
1ce5ea9493
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 3
      app/models/concerns/account/avatar.rb

3
app/models/concerns/account/avatar.rb

@ -8,9 +8,6 @@ module Account::Avatar
AVATAR_DIMENSIONS = [400, 400].freeze
AVATAR_GEOMETRY = [AVATAR_DIMENSIONS.first, AVATAR_DIMENSIONS.last].join('x')
AVATAR_DIMENSIONS = [400, 400].freeze
AVATAR_GEOMETRY = [AVATAR_DIMENSIONS.first, AVATAR_DIMENSIONS.last].join('x')
class_methods do
def avatar_styles(file)
styles = { original: { geometry: "#{AVATAR_GEOMETRY}#", file_geometry_parser: FastGeometryParser } }

Loading…
Cancel
Save