Skip to content

Commit

Permalink
Make prosopite config accessible
Browse files Browse the repository at this point in the history
This allows reading/writing to the config during runtime e.g. if you want to set a different query limit for a particular spec.
  • Loading branch information
tomwilshere authored and charkost committed Jul 19, 2023
1 parent 44a83e4 commit 94f2320
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/prosopite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ class << self
:rails_logger,
:prosopite_logger,
:custom_logger,
:allow_stack_paths,
:ignore_queries,
:ignore_pauses,
:min_n_queries,
:backtrace_cleaner

attr_accessor :allow_stack_paths,
:ignore_queries,
:min_n_queries

def allow_list=(value)
puts "Prosopite.allow_list= is deprecated. Use Prosopite.allow_stack_paths= instead."

Expand Down

0 comments on commit 94f2320

Please sign in to comment.