about summary refs log tree commit diff
path: root/app/controllers/api/v1/accounts_controller.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-19 09:37:42 -0400
committerEugen <eugen@zeonfederated.com>2017-04-19 15:37:42 +0200
commita8e1afc30a1f843943bb29e7385b8611ea3c29f4 (patch)
treec37ec1d7c086943da8bb126fde19f312d5efcad9 /app/controllers/api/v1/accounts_controller.rb
parentbfbc2ca0d8dcef47f8581585b42f13b6b4c933d9 (diff)
Simplify render in controllers (#2144)
Diffstat (limited to 'app/controllers/api/v1/accounts_controller.rb')
-rw-r--r--app/controllers/api/v1/accounts_controller.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb
index 2c44e36a7..5724dbaea 100644
--- a/app/controllers/api/v1/accounts_controller.rb
+++ b/app/controllers/api/v1/accounts_controller.rb
@@ -13,13 +13,13 @@ class Api::V1::AccountsController < ApiController
 
   def verify_credentials
     @account = current_user.account
-    render action: :show
+    render :show
   end
 
   def update_credentials
     current_account.update!(account_params)
     @account = current_account
-    render action: :show
+    render :show
   end
 
   def following
@@ -32,7 +32,7 @@ class Api::V1::AccountsController < ApiController
 
     set_pagination_headers(next_path, prev_path)
 
-    render action: :index
+    render :index
   end
 
   def followers
@@ -45,7 +45,7 @@ class Api::V1::AccountsController < ApiController
 
     set_pagination_headers(next_path, prev_path)
 
-    render action: :index
+    render :index
   end
 
   def statuses
@@ -65,7 +65,7 @@ class Api::V1::AccountsController < ApiController
   def follow
     FollowService.new.call(current_user.account, @account.acct)
     set_relationship
-    render action: :relationship
+    render :relationship
   end
 
   def block
@@ -77,31 +77,31 @@ class Api::V1::AccountsController < ApiController
     @requested   = { @account.id => false }
     @muting      = { @account.id => current_user.account.muting?(@account.id) }
 
-    render action: :relationship
+    render :relationship
   end
 
   def mute
     MuteService.new.call(current_user.account, @account)
     set_relationship
-    render action: :relationship
+    render :relationship
   end
 
   def unfollow
     UnfollowService.new.call(current_user.account, @account)
     set_relationship
-    render action: :relationship
+    render :relationship
   end
 
   def unblock
     UnblockService.new.call(current_user.account, @account)
     set_relationship
-    render action: :relationship
+    render :relationship
   end
 
   def unmute
     UnmuteService.new.call(current_user.account, @account)
     set_relationship
-    render action: :relationship
+    render :relationship
   end
 
   def relationships
@@ -118,7 +118,7 @@ class Api::V1::AccountsController < ApiController
   def search
     @accounts = AccountSearchService.new.call(params[:q], limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:resolve] == 'true', current_account)
 
-    render action: :index
+    render :index
   end
 
   private