Skip to content

Commit

Permalink
Remove track all actions, it's too much...
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Dec 2, 2024
1 parent 67ecb3a commit 969ffbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions app/controllers/api/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class ApiController < ActionController::Base
before_action :check_current_user_locked!
before_action :authenticate_api!, except: [ :test_exception ]

# after_action :track_action

# Call this API endpoint to test that you have the correct
# headers set.
# @return 200 if successful
Expand All @@ -47,10 +45,6 @@ def signup_enabled?
def set_default_response_format
request.format = :json unless params[:format]
end

def track_action
ahoy.track 'ran_api', request.path_parameters
end
end
end
# rubocop:enable Rails/ApplicationController
6 changes: 1 addition & 5 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class ApplicationController < ActionController::Base
before_action :require_login
before_action :check_current_user_locked!
before_action :check_for_announcement

# after_action :track_action


# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Expand All @@ -34,7 +33,4 @@ def check_for_announcement
AnnouncementViewed.create(user: @current_user, announcement: @announcement) if @announcement
end

def track_action
ahoy.track 'ran_action', request.path_parameters
end
end

0 comments on commit 969ffbb

Please sign in to comment.