Skip to content

Commit

Permalink
Added memoization for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavbiswa committed Mar 16, 2024
1 parent f0b32de commit 04cfdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record_anonymizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def configure
end

def configuration
Thread.current[:active_record_anonymizer_configuration] ||= Configuration.new
@configuration ||= Configuration.new
end

def eager_load!
Expand Down

0 comments on commit 04cfdaf

Please sign in to comment.