about summary refs log tree commit diff
path: root/app/presenters/account_relationships_presenter.rb
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-12-06 19:41:57 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-12-06 11:41:57 +0100
commitb21db9bbde3784556a5861e2cdec0c8c2184c72e (patch)
tree5702878677aa85352185fd22e69fb10cd142d9ee /app/presenters/account_relationships_presenter.rb
parent42bcbd36b72c7ddc5ae1ecced09614863ca382bd (diff)
Using double splat operator (#5859)
Diffstat (limited to 'app/presenters/account_relationships_presenter.rb')
-rw-r--r--app/presenters/account_relationships_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/account_relationships_presenter.rb b/app/presenters/account_relationships_presenter.rb
index a30558bac..bf1ba3716 100644
--- a/app/presenters/account_relationships_presenter.rb
+++ b/app/presenters/account_relationships_presenter.rb
@@ -4,7 +4,7 @@ class AccountRelationshipsPresenter
   attr_reader :following, :followed_by, :blocking,
               :muting, :requested, :domain_blocking
 
-  def initialize(account_ids, current_account_id, options = {})
+  def initialize(account_ids, current_account_id, **options)
     @following       = Account.following_map(account_ids, current_account_id).merge(options[:following_map] || {})
     @followed_by     = Account.followed_by_map(account_ids, current_account_id).merge(options[:followed_by_map] || {})
     @blocking        = Account.blocking_map(account_ids, current_account_id).merge(options[:blocking_map] || {})