From eb12fa7baf7e138a801940c2a8e079e6a5f33f0c Mon Sep 17 00:00:00 2001 From: Frederik Erbs Spang Thomsen Date: Fri, 11 Oct 2024 14:58:00 +0200 Subject: [PATCH] Fixes rubocop frozen strings --- .../lib/sentry/rails/tracing/active_support_subscriber.rb | 4 ++-- .../sentry/rails/tracing/active_support_subscriber_spec.rb | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sentry-rails/lib/sentry/rails/tracing/active_support_subscriber.rb b/sentry-rails/lib/sentry/rails/tracing/active_support_subscriber.rb index 89fb5e0f2..961fcc3a3 100644 --- a/sentry-rails/lib/sentry/rails/tracing/active_support_subscriber.rb +++ b/sentry-rails/lib/sentry/rails/tracing/active_support_subscriber.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "sentry/rails/tracing/abstract_subscriber" module Sentry @@ -41,8 +43,6 @@ def self.subscribe! end end - private - def self.operation_name(event_name) case when READ_EVENT_NAMES.include?(event_name) diff --git a/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb index c6e362439..033b22eb5 100644 --- a/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb +++ b/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "spec_helper" RSpec.describe Sentry::Rails::Tracing::ActiveSupportSubscriber, :subscriber, type: :request do