Commit f653e800

mo khan <mo@mokhan.ca>
2015-01-28 05:19:17
rename params to attributes.
1 parent 93487c7
Changed files (1)
app
services
application
app/services/application/upload_photo.rb
@@ -6,10 +6,10 @@ class UploadPhoto
     @storage = TemporaryStorage.new
   end
 
-  def run(params)
+  def run(attributes)
     with_transaction do
-      create_photo!(params[:watermark]) do |photo|
-        ProcessPhotoJob.perform_later(photo, storage.store(params[:image]))
+      create_photo!(attributes[:watermark]) do |photo|
+        ProcessPhotoJob.perform_later(photo, storage.store(attributes[:image]))
       end
     end
   end