Skip to content

Commit 10e0eeb

Browse files
committed
Update AR::Core#logger to match configuring guide
The configuring guide's text mentions the Ruby Logger, which seems like an improvement over the current text.
1 parent 2947e5b commit 10e0eeb

File tree

1 file changed

+4
-3
lines changed
  • activerecord/lib/active_record

1 file changed

+4
-3
lines changed

activerecord/lib/active_record/core.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ module Core
1515
##
1616
# :singleton-method:
1717
#
18-
# Accepts a logger conforming to the interface of Log4r which is then
19-
# passed on to any new database connections made and which can be
20-
# retrieved on both a class and instance level by calling +logger+.
18+
# Accepts a logger conforming to the interface of Log4r or the default
19+
# Ruby +Logger+ class, which is then passed on to any new database
20+
# connections made. You can retrieve this logger by calling +logger+ on
21+
# either an Active Record model class or an Active Record model instance.
2122
class_attribute :logger, instance_writer: false
2223

2324
class_attribute :_destroy_association_async_job, instance_accessor: false, default: "ActiveRecord::DestroyAssociationAsyncJob"

0 commit comments

Comments
 (0)