The personal finance app for everyone
Crop profile images
Josh Pigford41dff228e8dc
diff --git a/app/models/user.rb b/app/models/user.rbindex 3add1ba4..fe2a72c9 100644--- a/app/models/user.rb+++ b/app/models/user.rb@@ -14,7 +14,7 @@ class User < ApplicationRecordenum :role, { member: "member", admin: "admin" }, validate: truehas_one_attached :profile_image do |attachable|- attachable.variant :thumbnail, resize_to_limit: [ 150, 150 ], preprocessed: true+ attachable.variant :thumbnail, resize_to_fill: [ 300, 300 ]endvalidate :profile_image_sizediff --git a/config/environments/development.rb b/config/environments/development.rbindex 2dcd4b05..2f4f659c 100644--- a/config/environments/development.rb+++ b/config/environments/development.rb@@ -34,7 +34,7 @@ Rails.application.configure doend# Store uploaded files on the local file system (see config/storage.yml for options).- config.active_storage.service = :local+ config.active_storage.service = ENV.fetch("ACTIVE_STORAGE_SERVICE", "local").to_sym# Don't care if the mailer can't send.config.action_mailer.raise_delivery_errors = false