about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-08 19:12:54 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-08 19:12:54 +0100
commit2e71bb031b2dff90a2b0f9854bdcd804c069268a (patch)
tree497ec245e76171104da92f8f785ea7564a3a4a69 /app
parent38bc85e695e08956db6b29d482942dc759c57423 (diff)
Fix Paperclip timeout setting. Fix bug introduced in #437
Diffstat (limited to 'app')
-rw-r--r--app/models/account.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 3a7763a64..ba24cf153 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -190,8 +190,10 @@ class Account < ApplicationRecord
       follow_mapping(FollowRequest.where(target_account_id: target_account_ids, account_id: account_id), :target_account_id)
     end
     
-    private def follow_mapping(query, field)
-      query.pluck(field).inject({}) { |mapping, id| mapping[id] = true }
+    private
+
+    def follow_mapping(query, field)
+      query.pluck(field).inject({}) { |mapping, id| mapping[id] = true; mapping }
     end
   end