summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-01-20 22:04:02 -0700
committermo khan <mo@mokhan.ca>2015-01-20 22:04:02 -0700
commitba2b6e9fc1d0dd07e8a5f66384b6de2ef1dffbf2 (patch)
tree3c9ca6ff4190bee76103ca3efe3589fbc4d0dddb /app/controllers
parentb8220fc12cc3baae6c3e8f3c5dc5686cf1ef4df3 (diff)
happy hound.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/my/avatars_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/my/avatars_controller.rb b/app/controllers/my/avatars_controller.rb
index eea96a61..a06bbbd0 100644
--- a/app/controllers/my/avatars_controller.rb
+++ b/app/controllers/my/avatars_controller.rb
@@ -6,8 +6,14 @@ module My
def create
image = params[:photo][:image]
- ProcessAvatarJob.perform_later(current_user, TemporaryStorage.new.store(image))
+ ProcessAvatarJob.perform_later(current_user, storage.store(image))
redirect_to new_my_avatar_path, notice: t(:avatar_uploaded)
end
+
+ private
+
+ def storage
+ TemporaryStorage.new
+ end
end
end