app/controllers/concerns/api/v1/users/controller_base.rb in bullet_train-api-1.2.27 vs app/controllers/concerns/api/v1/users/controller_base.rb in bullet_train-api-1.3.0
- old
+ new
@@ -12,10 +12,13 @@
general_fields = [
:email,
:first_name,
:last_name,
:time_zone,
- :locale
+ :locale,
+ :profile_photo_id, # For Cloudinary
+ :profile_photo, # For ActiveStorage
+ :profile_photo_removal
]
selected_fields = if params.is_a?(BulletTrain::Api::StrongParametersReporter)
password_fields + general_fields
else