Sha256: d672a3d5d4d6b5666ee10ec50ebe953861cb9406990eb8ffd8c6ca02a4fc51c3

Contents?: true

Size: 387 Bytes

Versions: 38

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Utils
    module RailsHelper
      def self.detected_rails_app_name
        rails_class = Rails.application.class
        if rails_class.respond_to? :module_parent_name # Rails 6
          rails_class.module_parent_name
        else # Older Rails versions
          rails_class.parent_name
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-2.9.16-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.16 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.15-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.15 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.14-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.14 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.13-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.13 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.12-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.12 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.12.beta.0-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.12.beta.0 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.11 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.11-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.10 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.10-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.9-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.9 lib/appsignal/utils/rails_helper.rb
appsignal-2.9.8-java lib/appsignal/utils/rails_helper.rb
appsignal-2.9.8 lib/appsignal/utils/rails_helper.rb