Skip to content

Commit

Permalink
Update AR::Core#logger to match configuring guide
Browse files Browse the repository at this point in the history
The configuring guide's text mentions the Ruby Logger, which seems like
an improvement over the current text.
  • Loading branch information
skipkayhil committed Oct 31, 2023
1 parent 2947e5b commit 10e0eeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions activerecord/lib/active_record/core.rb
Expand Up @@ -15,9 +15,10 @@ module Core
##
# :singleton-method:
#
# Accepts a logger conforming to the interface of Log4r which is then
# passed on to any new database connections made and which can be
# retrieved on both a class and instance level by calling +logger+.
# Accepts a logger conforming to the interface of Log4r or the default
# Ruby +Logger+ class, which is then passed on to any new database
# connections made. You can retrieve this logger by calling +logger+ on
# either an Active Record model class or an Active Record model instance.
class_attribute :logger, instance_writer: false

class_attribute :_destroy_association_async_job, instance_accessor: false, default: "ActiveRecord::DestroyAssociationAsyncJob"
Expand Down

0 comments on commit 10e0eeb

Please sign in to comment.