diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-17 12:50:19 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-17 12:50:19 -0700 |
| commit | 3f34a83426adf7ee4dfd1b0b75514651818daef5 (patch) | |
| tree | a468fa06b3f4addf5b1450253f1a66574b268d6f /app/controllers/my | |
| parent | 64dfdf7a64ff4603d2ab63bc058e0ef5e429e2dd (diff) | |
remove the old process avatart handler.
Diffstat (limited to 'app/controllers/my')
| -rw-r--r-- | app/controllers/my/avatars_controller.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/controllers/my/avatars_controller.rb b/app/controllers/my/avatars_controller.rb index 0b7eddb4..c88ba638 100644 --- a/app/controllers/my/avatars_controller.rb +++ b/app/controllers/my/avatars_controller.rb @@ -17,16 +17,7 @@ module My private def publish(image) - @bus.publish(:upload_avatar, create_message_from(image)) - end - - def create_message_from(image) - { - user_id: current_user.id, - file_path: move_to_temporary_storage(image), - original_filename: image.original_filename, - content_type: image.content_type, - } + ProcessAvatarJob.perform_later(current_user, move_to_temporary_storage(image)) end def move_to_temporary_storage(image) |
