Sha256: fdac44c09c55e64cb0fdea4fa9b0fba0692e97b68716f5ba49776f52981f483d

Contents?: true

Size: 762 Bytes

Versions: 1

Compression:

Stored size: 762 Bytes

Contents

# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

require 'new_relic/control/frameworks/rails3'

module NewRelic
  class Control
    module Frameworks
      class Rails4 < NewRelic::Control::Frameworks::Rails3
        def rails_gem_list
          if Bundler.rubygems.respond_to?(:installed_specs)
            Bundler.rubygems.installed_specs.map { |gem| "#{gem.name} (#{gem.version})" }
          else
            Bundler.rubygems.all_specs.map { |gem| "#{gem.name} (#{gem.version})" }
          end
        end

        def append_plugin_list
          # Rails 4 does not allow plugins
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newrelic_rpm-9.14.0 lib/new_relic/control/frameworks/rails4.rb