Browse Source

Less bad name

Maarten van den Berg 6 years ago
parent
commit
62a7929e1c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controllers/api/activities_controller.rb

+ 2 - 2
app/controllers/api/activities_controller.rb

10
 
10
 
11
   # Group API-key-based authentication/authorization
11
   # Group API-key-based authentication/authorization
12
   before_action :api_auth_group_token,    if: 'request.authorization'
12
   before_action :api_auth_group_token,    if: 'request.authorization'
13
-  before_action :set_activity_from_group, if: 'request.authorization'
13
+  before_action :set_activity_with_group, if: 'request.authorization'
14
 
14
 
15
   # GET /api/activities
15
   # GET /api/activities
16
   def index
16
   def index
92
   end
92
   end
93
 
93
 
94
   # Set activity from the :id-parameter, and assert that it belongs to the set @group.
94
   # Set activity from the :id-parameter, and assert that it belongs to the set @group.
95
-  def set_activity_from_group
95
+  def set_activity_with_group
96
     @activity = Activity.find_by id: params[:id]
96
     @activity = Activity.find_by id: params[:id]
97
     unless @activity
97
     unless @activity
98
       head :not_found
98
       head :not_found