Sha256: f731817257b79a060914abf92421047b23259805a8279ce105dd6e65df529f47
Contents?: true
Size: 627 Bytes
Versions: 48
Compression:
Stored size: 627 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 def self.application_config_path File.expand_path(File.join(Dir.pwd, "config/application.rb")) end def self.environment_config_path File.expand_path(File.join(Dir.pwd, "config/environment.rb")) end end end end
Version data entries
48 entries across 48 versions & 1 rubygems