Skip to content

Commit

Permalink
Make config env, root path and options read only
Browse files Browse the repository at this point in the history
Not sure why these were an accessor, but they don't need to define
writers to allow app to overwrite the config after AppSignal has
started. That can cause problems and expectations that the changed
config is picked up.

[skip changeset] as these are private APIs.
  • Loading branch information
tombruijn committed Sep 27, 2024
1 parent 58d1e08 commit 79a2942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appsignal/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def self.determine_root_path
}.freeze

# @api private
attr_accessor :root_path, :env, :config_hash
attr_reader :root_path, :env, :config_hash

# List of config option sources. If a config option was set by a source,
# it's listed in that source's config options hash.
Expand Down

0 comments on commit 79a2942

Please sign in to comment.